summaryrefslogtreecommitdiff
path: root/net/ipv4
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@osdl.org>2007-02-07 00:09:58 -0800
committerDavid S. Miller <davem@sunset.davemloft.net>2007-02-08 12:39:06 -0800
commit22f8cde5bc336fd19603bb8c4572b33d14f14f87 (patch)
tree7a566269b9d294a1a90e8368a005e1b3fbc5e984 /net/ipv4
parentf48d5ff1e44562a0ee87ce8ea3b798ce9d84370d (diff)
downloadlinux-3.10-22f8cde5bc336fd19603bb8c4572b33d14f14f87.tar.gz
linux-3.10-22f8cde5bc336fd19603bb8c4572b33d14f14f87.tar.bz2
linux-3.10-22f8cde5bc336fd19603bb8c4572b33d14f14f87.zip
[NET]: unregister_netdevice as void
There was no real useful information from the unregister_netdevice() return code, the only error occurred in a situation that was a driver bug. So change it to a void function. Signed-off-by: Stephen Hemminger <shemminger@osdl.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4')
-rw-r--r--net/ipv4/ip_gre.c3
-rw-r--r--net/ipv4/ipip.c3
2 files changed, 4 insertions, 2 deletions
diff --git a/net/ipv4/ip_gre.c b/net/ipv4/ip_gre.c
index 476cb6084c7..51c83500790 100644
--- a/net/ipv4/ip_gre.c
+++ b/net/ipv4/ip_gre.c
@@ -1008,7 +1008,8 @@ ipgre_tunnel_ioctl (struct net_device *dev, struct ifreq *ifr, int cmd)
goto done;
dev = t->dev;
}
- err = unregister_netdevice(dev);
+ unregister_netdevice(dev);
+ err = 0;
break;
default:
diff --git a/net/ipv4/ipip.c b/net/ipv4/ipip.c
index 9d719d664e5..da8bbd20c7e 100644
--- a/net/ipv4/ipip.c
+++ b/net/ipv4/ipip.c
@@ -754,7 +754,8 @@ ipip_tunnel_ioctl (struct net_device *dev, struct ifreq *ifr, int cmd)
goto done;
dev = t->dev;
}
- err = unregister_netdevice(dev);
+ unregister_netdevice(dev);
+ err = 0;
break;
default: