Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Dave Penkler and committed by
Greg Kroah-Hartman
e8186a37 cfa6673e

-3
-3
drivers/staging/gpib/ines/ines_gpib.c
··· 1112 1112 */ 1113 1113 static int ines_gpib_config(struct pcmcia_device *link) 1114 1114 { 1115 - struct local_info *dev; 1116 1115 int retval; 1117 1116 void __iomem *virt; 1118 - 1119 - dev = link->priv; 1120 1117 1121 1118 retval = pcmcia_loop_config(link, &ines_gpib_config_iteration, NULL); 1122 1119 if (retval) {