Skip to content

Commit

Permalink
drivers/net/hamradio: fix sparse warning: symbol shadows an earlier one
Browse files Browse the repository at this point in the history
Impact: Rename inner scrope variable.

Fix this sparse warning:
  drivers/net/hamradio/yam.c:856:35: warning: symbol 'dev' shadows an earlier one

Signed-off-by: Hannes Eder <hannes@hanneseder.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Hannes Eder authored and David S. Miller committed Feb 18, 2009
1 parent e334f56 commit 9b329f1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/net/hamradio/yam.c
Original file line number Diff line number Diff line change
Expand Up @@ -854,10 +854,10 @@ static int yam_open(struct net_device *dev)

/* Reset overruns for all ports - FPGA programming makes overruns */
for (i = 0; i < NR_PORTS; i++) {
struct net_device *dev = yam_devs[i];
struct net_device *yam_dev = yam_devs[i];

inb(LSR(dev->base_addr));
dev->stats.rx_fifo_errors = 0;
inb(LSR(yam_dev->base_addr));
yam_dev->stats.rx_fifo_errors = 0;
}

printk(KERN_INFO "%s at iobase 0x%lx irq %u uart %s\n", dev->name, dev->base_addr, dev->irq,
Expand Down

0 comments on commit 9b329f1

Please sign in to comment.