Skip to content

Commit 01537a0

Browse files
arndbsudeep-holla
authored andcommitted
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/[email protected] Fixes: 8e3f9da ("firmware: arm_ffa: Handle compatibility with different firmware versions") Signed-off-by: Arnd Bergmann <[email protected]> Signed-off-by: Sudeep Holla <[email protected]>
1 parent 82a8daa commit 01537a0

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/firmware/arm_ffa/driver.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,6 @@ static struct ffa_drv_info *drv_info;
177177
*/
178178
static u32 ffa_compatible_version_find(u32 version)
179179
{
180-
u32 compat_version;
181180
u16 major = MAJOR_VERSION(version), minor = MINOR_VERSION(version);
182181
u16 drv_major = MAJOR_VERSION(FFA_DRIVER_VERSION);
183182
u16 drv_minor = MINOR_VERSION(FFA_DRIVER_VERSION);

0 commit comments

Comments
 (0)