aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/dl2k.c
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@linux-foundation.org>2007-10-05 20:19:47 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-10-10 19:55:27 -0400
commitddfce6bb43c6bf1c9956e7a65ce1b2e19a156bd2 (patch)
tree38e871422ccb6168ae84ca6e33e9374715c3df9b /drivers/net/dl2k.c
parent43b7c451a03fe5f615710e26e8e2a3dd70eaa5b1 (diff)
network drivers: sparse warning fixes
Fix some of the easy warnings in network device drivers. Signed-off-by: Stephen Hemminger <shemminger@linux-foundation.org> Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/dl2k.c')
-rw-r--r--drivers/net/dl2k.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/dl2k.c b/drivers/net/dl2k.c
index e91b7096838a..5066beb2e7bc 100644
--- a/drivers/net/dl2k.c
+++ b/drivers/net/dl2k.c
@@ -290,7 +290,7 @@ rio_probe1 (struct pci_dev *pdev, const struct pci_device_id *ent)
290 return err; 290 return err;
291} 291}
292 292
293int 293static int
294find_miiphy (struct net_device *dev) 294find_miiphy (struct net_device *dev)
295{ 295{
296 int i, phy_found = 0; 296 int i, phy_found = 0;
@@ -314,7 +314,7 @@ find_miiphy (struct net_device *dev)
314 return 0; 314 return 0;
315} 315}
316 316
317int 317static int
318parse_eeprom (struct net_device *dev) 318parse_eeprom (struct net_device *dev)
319{ 319{
320 int i, j; 320 int i, j;
@@ -1096,7 +1096,7 @@ clear_stats (struct net_device *dev)
1096} 1096}
1097 1097
1098 1098
1099int 1099static int
1100change_mtu (struct net_device *dev, int new_mtu) 1100change_mtu (struct net_device *dev, int new_mtu)
1101{ 1101{
1102 struct netdev_private *np = netdev_priv(dev); 1102 struct netdev_private *np = netdev_priv(dev);
@@ -1331,7 +1331,7 @@ rio_ioctl (struct net_device *dev, struct ifreq *rq, int cmd)
1331#define EEP_BUSY 0x8000 1331#define EEP_BUSY 0x8000
1332/* Read the EEPROM word */ 1332/* Read the EEPROM word */
1333/* We use I/O instruction to read/write eeprom to avoid fail on some machines */ 1333/* We use I/O instruction to read/write eeprom to avoid fail on some machines */
1334int 1334static int
1335read_eeprom (long ioaddr, int eep_addr) 1335read_eeprom (long ioaddr, int eep_addr)
1336{ 1336{
1337 int i = 1000; 1337 int i = 1000;