net: Remove return value from list_netdevice()
authordingtianhong <dingtianhong@huawei.com>
Wed, 17 Apr 2013 22:17:50 +0000 (22:17 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 22 Apr 2013 20:09:24 +0000 (16:09 -0400)
The return value from list_netdevice() is not used and no need, so remove it.

Signed-off-by: Ding Tianhong <dingtianhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/dev.c

index fad4c385f7a1d7cd9820ef0cbdddcd1dc322d521..8a3cb2c50fbfbc6f2afa1760f619297ea4bdd4b3 100644 (file)
@@ -200,7 +200,7 @@ static inline void rps_unlock(struct softnet_data *sd)
 }
 
 /* Device list insertion */
-static int list_netdevice(struct net_device *dev)
+static void list_netdevice(struct net_device *dev)
 {
        struct net *net = dev_net(dev);
 
@@ -214,8 +214,6 @@ static int list_netdevice(struct net_device *dev)
        write_unlock_bh(&dev_base_lock);
 
        dev_base_seq_inc(net);
-
-       return 0;
 }
 
 /* Device list removal