Commit 1d462e8d authored by David S. Miller's avatar David S. Miller Committed by Jeff Garzik

Fix compiler warnings in e100 net driver

parent f6f2c620
...@@ -3740,8 +3740,8 @@ e100_ethtool_led_blink(struct net_device *dev, struct ifreq *ifr) ...@@ -3740,8 +3740,8 @@ e100_ethtool_led_blink(struct net_device *dev, struct ifreq *ifr)
set_current_state(TASK_INTERRUPTIBLE); set_current_state(TASK_INTERRUPTIBLE);
if ((!ecmd.data) || (ecmd.data > MAX_SCHEDULE_TIMEOUT / HZ)) if ((!ecmd.data) || (ecmd.data > (u32)(MAX_SCHEDULE_TIMEOUT / HZ)))
ecmd.data = MAX_SCHEDULE_TIMEOUT / HZ; ecmd.data = (u32)(MAX_SCHEDULE_TIMEOUT / HZ);
schedule_timeout(ecmd.data * HZ); schedule_timeout(ecmd.data * HZ);
...@@ -3839,6 +3839,7 @@ e100_setup_filter(struct e100_private *bdp) ...@@ -3839,6 +3839,7 @@ e100_setup_filter(struct e100_private *bdp)
} }
#ifdef CONFIG_PM
static void static void
e100_do_wol(struct pci_dev *pcid, struct e100_private *bdp) e100_do_wol(struct pci_dev *pcid, struct e100_private *bdp)
{ {
...@@ -3853,6 +3854,7 @@ e100_do_wol(struct pci_dev *pcid, struct e100_private *bdp) ...@@ -3853,6 +3854,7 @@ e100_do_wol(struct pci_dev *pcid, struct e100_private *bdp)
printk(KERN_ERR "e100: config WOL failed\n"); printk(KERN_ERR "e100: config WOL failed\n");
} }
} }
#endif
static u16 static u16
e100_get_ip_lbytes(struct net_device *dev) e100_get_ip_lbytes(struct net_device *dev)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment