diff options
author | Arnd Bergmann <arnd@arndb.de> | 2021-10-26 11:33:50 +0300 |
---|---|---|
committer | Sudeep Holla <sudeep.holla@arm.com> | 2021-10-26 14:46:15 +0300 |
commit | 01537a078b86917c7bb69aa4b756b42b980c158b (patch) | |
tree | 771faf7eddf6fb0f0d842100d686bbd30e150ece /drivers/firmware/arm_ffa | |
parent | 82a8daaecfd9382e9450a05f86be8a274cf69a27 (diff) | |
download | linux-01537a078b86917c7bb69aa4b756b42b980c158b.tar.xz |
firmware: arm_ffa: Remove unused 'compat_version' variable
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;
Link: https://lore.kernel.org/r/20211026083400.3444946-1-arnd@kernel.org
Fixes: 8e3f9da608f1 ("firmware: arm_ffa: Handle compatibility with different firmware versions")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
Diffstat (limited to 'drivers/firmware/arm_ffa')
-rw-r--r-- | drivers/firmware/arm_ffa/driver.c | 1 |
1 files changed, 0 insertions, 1 deletions
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); |