提交 53759be9 编写于 作者: D dingtianhong 提交者: David S. Miller

net: Remove return value from list_netdevice()

The return value from list_netdevice() is not used and no need, so remove it.
Signed-off-by: NDing Tianhong <dingtianhong@huawei.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 3fb62c5d
...@@ -200,7 +200,7 @@ static inline void rps_unlock(struct softnet_data *sd) ...@@ -200,7 +200,7 @@ static inline void rps_unlock(struct softnet_data *sd)
} }
/* Device list insertion */ /* 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); struct net *net = dev_net(dev);
...@@ -214,8 +214,6 @@ static int list_netdevice(struct net_device *dev) ...@@ -214,8 +214,6 @@ static int list_netdevice(struct net_device *dev)
write_unlock_bh(&dev_base_lock); write_unlock_bh(&dev_base_lock);
dev_base_seq_inc(net); dev_base_seq_inc(net);
return 0;
} }
/* Device list removal /* Device list removal
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册