[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>
This commit is contained in:
Stephen Hemminger
2007-02-07 00:09:58 -08:00
committed by David S. Miller
parent f48d5ff1e4
commit 22f8cde5bc
6 changed files with 14 additions and 13 deletions

View File

@ -999,7 +999,8 @@ ip6ip6_tnl_ioctl(struct net_device *dev, struct ifreq *ifr, int cmd)
break;
dev = t->dev;
}
err = unregister_netdevice(dev);
err = 0;
unregister_netdevice(dev);
break;
default:
err = -EINVAL;