Fixed warning on some compilers.
authorFlorian Pose <fp@igh-essen.com>
Wed, 01 Oct 2008 08:40:30 +0000
changeset 1236 5007e4913a4c
parent 1235 72dc9d5a1273
child 1237 33e8349b44bd
Fixed warning on some compilers.
devices/e100-2.6.20-ethercat.c
--- a/devices/e100-2.6.20-ethercat.c	Tue Sep 30 14:14:40 2008 +0000
+++ b/devices/e100-2.6.20-ethercat.c	Wed Oct 01 08:40:30 2008 +0000
@@ -2875,7 +2875,7 @@
 	struct nic *nic = netdev_priv(netdev);
 
 	if (nic->ecdev)
-		return;
+		return 0;
 
 	if (netif_running(netdev))
 		netif_poll_disable(nic->netdev);
@@ -2906,7 +2906,7 @@
 	struct nic *nic = netdev_priv(netdev);
 
 	if (nic->ecdev)
-		return;
+		return 0;
 
 	pci_set_power_state(pdev, PCI_D0);
 	pci_restore_state(pdev);