Skip to content

Commit 417ce77

Browse files
dpenklergregkh
authored andcommitted
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 75d9d7c commit 417ce77

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

drivers/staging/gpib/cb7210/cb7210.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1247,13 +1247,8 @@ static int cb_gpib_config_iteration(struct pcmcia_device *link, void *priv_data)
12471247

12481248
static int cb_gpib_config(struct pcmcia_device *link)
12491249
{
1250-
struct pcmcia_device *handle;
1251-
struct local_info *dev;
12521250
int retval;
12531251

1254-
handle = link;
1255-
dev = link->priv;
1256-
12571252
retval = pcmcia_loop_config(link, &cb_gpib_config_iteration, NULL);
12581253
if (retval) {
12591254
dev_warn(&link->dev, "no configuration found\n");

0 commit comments

Comments
 (0)