diff options
author | Arnd Bergmann <arnd@arndb.de> | 2025-04-09 14:23:01 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-04-17 10:56:11 +0200 |
commit | c2c707bd45426df6edc5cf9f5f9fd857bd9926a9 (patch) | |
tree | ae895880750301602e444fdce77a62083632bb5f /scripts/git-resolve.sh | |
parent | 7ae52a3d7f511c95dad414441db7cfdd6356d88a (diff) |
apm-emulation: hide an unused variable
The driver_version variable is only used inside of an #ifdef block, which
leads to a W=1 warning:
drivers/char/apm-emulation.c:144:19: error: 'driver_version' defined but not used [-Werror=unused-const-variable=]
Move this into the function using it.
Fixes: 7726942fb15e ("[APM] Add shared version of APM emulation")
Acked-by: Jiri Kosina <jkosina@suse.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20250409122314.2848028-9-arnd@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/git-resolve.sh')
0 files changed, 0 insertions, 0 deletions