From nobody Tue Feb 10 04:17:16 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=fail(p=none dis=none) header.from=arm.com Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1651053025170392.1449734297722; Wed, 27 Apr 2022 02:50:25 -0700 (PDT) Received: from list by lists.xenproject.org with outflank-mailman.314680.532861 (Exim 4.92) (envelope-from ) id 1njeJ2-00089D-UR; Wed, 27 Apr 2022 09:49:56 +0000 Received: by outflank-mailman (output) from mailman id 314680.532861; Wed, 27 Apr 2022 09:49:56 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1njeJ2-00088U-Qr; Wed, 27 Apr 2022 09:49:56 +0000 Received: by outflank-mailman (input) for mailman id 314680; Wed, 27 Apr 2022 09:49:56 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1njeJ1-00085x-Vs for xen-devel@lists.xenproject.org; Wed, 27 Apr 2022 09:49:55 +0000 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by se1-gles-sth1.inumbo.com (Halon) with ESMTP id 64240b9e-c60f-11ec-a405-831a346695d4; Wed, 27 Apr 2022 11:49:55 +0200 (CEST) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 7F56414BF; Wed, 27 Apr 2022 02:49:54 -0700 (PDT) Received: from e129167.arm.com (unknown [10.57.13.174]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 084053F774; Wed, 27 Apr 2022 02:49:52 -0700 (PDT) X-Outflank-Mailman: Message body and most headers restored to incoming version X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 64240b9e-c60f-11ec-a405-831a346695d4 From: Michal Orzel To: xen-devel@lists.xenproject.org Cc: Stefano Stabellini , Julien Grall , Bertrand Marquis , Volodymyr Babchuk Subject: [PATCH 1/8] xen/arm: bootfdt.c: Remove unused-but-set variable Date: Wed, 27 Apr 2022 11:49:34 +0200 Message-Id: <20220427094941.291554-2-michal.orzel@arm.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220427094941.291554-1-michal.orzel@arm.com> References: <20220427094941.291554-1-michal.orzel@arm.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ZM-MESSAGEID: 1651053026331100007 Content-Type: text/plain; charset="utf-8" Function device_tree_node_compatible defines and sets a variable mlen but does not make use of it. Remove this variable. Signed-off-by: Michal Orzel Reviewed-by: Julien Grall --- xen/arch/arm/bootfdt.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/xen/arch/arm/bootfdt.c b/xen/arch/arm/bootfdt.c index e318ef9603..29671c8df0 100644 --- a/xen/arch/arm/bootfdt.c +++ b/xen/arch/arm/bootfdt.c @@ -36,11 +36,8 @@ static bool __init device_tree_node_compatible(const voi= d *fdt, int node, const char *match) { int len, l; - int mlen; const void *prop; =20 - mlen =3D strlen(match); - prop =3D fdt_getprop(fdt, node, "compatible", &len); if ( prop =3D=3D NULL ) return false; --=20 2.25.1