]> www.infradead.org Git - users/jedix/linux-maple.git/commit
staging: gpib: Avoid unused variable warning
authorDave Penkler <dpenkler@gmail.com>
Fri, 2 May 2025 07:21:50 +0000 (09:21 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 21 May 2025 11:44:46 +0000 (13:44 +0200)
commite8186a376483edc9b0bac2a66f2f3b07fb005082
treeada89e38d69abb3ded5eaa122e7e8102a9a2d3ff
parentcfa6673eae0281d0840838b9a488b7d2d1e78377
staging: gpib: Avoid unused variable warning

This addresses a warning produced by make W=1 with the configuration
parameter CONFIG_GPIB_PCMCIA=y

ines/ines_gpib.c:1115:28: warning: variable 'dev' set but not used [-Wunused-but-set-variable]

Remove the declaration and assignment of the unused variable.

Signed-off-by: Dave Penkler <dpenkler@gmail.com>
Link: https://lore.kernel.org/r/20250502072150.32714-4-dpenkler@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/gpib/ines/ines_gpib.c