[PATCH] firmware: arm_ffa: remove unused 'compat_version' variable

Arnd Bergmann arnd at kernel.org
Tue Oct 26 01:33:50 PDT 2021


From: Arnd Bergmann <arnd at arndb.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 at arndb.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




More information about the linux-arm-kernel mailing list