mirror of
https://github.com/torvalds/linux.git
synced 2026-05-23 14:42:08 +02:00
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>
This commit is contained in:
parent
75d9d7c29b
commit
417ce77ef4
|
|
@ -1247,13 +1247,8 @@ static int cb_gpib_config_iteration(struct pcmcia_device *link, void *priv_data)
|
|||
|
||||
static int cb_gpib_config(struct pcmcia_device *link)
|
||||
{
|
||||
struct pcmcia_device *handle;
|
||||
struct local_info *dev;
|
||||
int retval;
|
||||
|
||||
handle = link;
|
||||
dev = link->priv;
|
||||
|
||||
retval = pcmcia_loop_config(link, &cb_gpib_config_iteration, NULL);
|
||||
if (retval) {
|
||||
dev_warn(&link->dev, "no configuration found\n");
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user