[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20211026083400.3444946-1-arnd@kernel.org>
Date: Tue, 26 Oct 2021 10:33:50 +0200
From: Arnd Bergmann <arnd@...nel.org>
To: Sudeep Holla <sudeep.holla@....com>,
Jens Wiklander <jens.wiklander@...aro.org>
Cc: Arnd Bergmann <arnd@...db.de>, Marc Bonnici <marc.bonnici@....com>,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org
Subject: [PATCH] firmware: arm_ffa: remove unused 'compat_version' variable
From: Arnd Bergmann <arnd@...db.de>
The newly added ffa_compatible_version_find() function causes a
build warning because of a variable that is never used:
drivers/firmware/arm_ffa/driver.c:180:6: error: unused variable 'compat_version' [-Werror,-Wunused-variable]
u32 compat_version;
Fixes: 8e3f9da608f1 ("firmware: arm_ffa: Handle compatibility with different firmware versions")
Signed-off-by: Arnd Bergmann <arnd@...db.de>
---
drivers/firmware/arm_ffa/driver.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/firmware/arm_ffa/driver.c b/drivers/firmware/arm_ffa/driver.c
index 12f4c87c4555..14f900047ac0 100644
--- a/drivers/firmware/arm_ffa/driver.c
+++ b/drivers/firmware/arm_ffa/driver.c
@@ -177,7 +177,6 @@ static struct ffa_drv_info *drv_info;
*/
static u32 ffa_compatible_version_find(u32 version)
{
- u32 compat_version;
u16 major = MAJOR_VERSION(version), minor = MINOR_VERSION(version);
u16 drv_major = MAJOR_VERSION(FFA_DRIVER_VERSION);
u16 drv_minor = MINOR_VERSION(FFA_DRIVER_VERSION);
--
2.29.2
Powered by blists - more mailing lists