firmware: arm_ffa: remove unused 'compat_version' variable
PATCH 1/1 firmware: arm_ffa: remove unused 'compat_version' variable
From: Arnd Bergmann <[email protected]>
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 <[email protected]>
--- drivers/firmware/arm_ffa/driver.c | 1 - 1 file changed, 1 deletion(-)
drivers/firmware/arm_ffa/driver.c +0 -1
@@ -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 );
Signature · 1 line
2.29.2
Sudeep Holla
AppliedQuoted 9 lines · Arnd Bergmann
From: Arnd Bergmann <[email protected]>
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;[...]
Applied to sudeep.holla/linux (for-linux-next), thanks!
[1/1] firmware: arm_ffa: remove unused 'compat_version' variable
https://git.kernel.org/sudeep.holla/c/01537a078b
--
Regards,
Sudeep