Skip to contentSkip to conversation

net: Remove return value from list_netdevice()

PATCH New dingtianhong 1 participant 1 message Apr 18, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net: Remove return value from list_netdevice()

The return value from list_netdevice() is not used and no need, so remove it.

---
 net/core/dev.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
net/core/dev.c +1 -3
index e7d68ed..58732dc 100644
@@ -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
Signature · 1 line
1.8.0