Skip to content

Commit e8186a3

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

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

drivers/staging/gpib/ines/ines_gpib.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1112,12 +1112,9 @@ static int ines_gpib_config_iteration(struct pcmcia_device *link, void *priv_dat
11121112
*/
11131113
static int ines_gpib_config(struct pcmcia_device *link)
11141114
{
1115-
struct local_info *dev;
11161115
int retval;
11171116
void __iomem *virt;
11181117

1119-
dev = link->priv;
1120-
11211118
retval = pcmcia_loop_config(link, &ines_gpib_config_iteration, NULL);
11221119
if (retval) {
11231120
dev_warn(&link->dev, "no configuration found\n");

0 commit comments

Comments
 (0)