소스 검색

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: Ding Tianhong <dingtianhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
dingtianhong 12 년 전
부모
커밋
53759be997
1개의 변경된 파일1개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 3
      net/core/dev.c

+ 1 - 3
net/core/dev.c

@@ -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)
 	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