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

staging: gpib: Avoid unused variable warnings

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

cb7210/cb7210.c:1251:28: warning: variable 'dev' set but not used [-Wunused-but-set-variable]
cb7210/cb7210.c:1250:31: warning: variable 'handle' set but not used [-Wunused-but-set-variable]

Remove the declarations and assignments of the unused variables.

Signed-off-by: Dave Penkler <dpenkler@gmail.com>
Link: https://lore.kernel.org/r/20250427093123.18565-1-dpenkler@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Dave Penkler and committed by
Greg Kroah-Hartman
417ce77e 75d9d7c2

-5
-5
drivers/staging/gpib/cb7210/cb7210.c
··· 1247 1247 1248 1248 static int cb_gpib_config(struct pcmcia_device *link) 1249 1249 { 1250 - struct pcmcia_device *handle; 1251 - struct local_info *dev; 1252 1250 int retval; 1253 - 1254 - handle = link; 1255 - dev = link->priv; 1256 1251 1257 1252 retval = pcmcia_loop_config(link, &cb_gpib_config_iteration, NULL); 1258 1253 if (retval) {