aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHannes Eder <hannes@hanneseder.net>2009-02-14 06:35:35 -0500
committerDavid S. Miller <davem@davemloft.net>2009-02-17 20:37:39 -0500
commit9b329f18b943fb5648c10f79690918b9056dd5c5 (patch)
tree9a34e9c26e119d8d8eceaf9e34ba3c8df5d1b1e0
parente334f564e83c4aa6db4259b5d7e62d1b5032faf2 (diff)
drivers/net/hamradio: fix sparse warning: symbol shadows an earlier one
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>
-rw-r--r--drivers/net/hamradio/yam.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/hamradio/yam.c b/drivers/net/hamradio/yam.c
index a54b865c2080..500a40b2afe7 100644
--- a/drivers/net/hamradio/yam.c
+++ b/drivers/net/hamradio/yam.c
@@ -854,10 +854,10 @@ static int yam_open(struct net_device *dev)
854 854
855 /* Reset overruns for all ports - FPGA programming makes overruns */ 855 /* Reset overruns for all ports - FPGA programming makes overruns */
856 for (i = 0; i < NR_PORTS; i++) { 856 for (i = 0; i < NR_PORTS; i++) {
857 struct net_device *dev = yam_devs[i]; 857 struct net_device *yam_dev = yam_devs[i];
858 858
859 inb(LSR(dev->base_addr)); 859 inb(LSR(yam_dev->base_addr));
860 dev->stats.rx_fifo_errors = 0; 860 yam_dev->stats.rx_fifo_errors = 0;
861 } 861 }
862 862
863 printk(KERN_INFO "%s at iobase 0x%lx irq %u uart %s\n", dev->name, dev->base_addr, dev->irq, 863 printk(KERN_INFO "%s at iobase 0x%lx irq %u uart %s\n", dev->name, dev->base_addr, dev->irq,