All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] net: Remove return value from list_netdevice()
@ 2013-04-18  8:17 dingtianhong
  0 siblings, 0 replies; only message in thread
From: dingtianhong @ 2013-04-18  8:17 UTC (permalink / raw)
  To: David S. Miller, Eric Dumazet, Netdev, Li Zefan

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

Signed-off-by: Ding Tianhong <dingtianhong@huawei.com>
---
 net/core/dev.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/net/core/dev.c b/net/core/dev.c
index e7d68ed..58732dc 100644
--- a/net/core/dev.c
+++ b/net/core/dev.c
@@ -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
-- 
1.8.0

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2013-04-18  8:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-18  8:17 [PATCH] net: Remove return value from list_netdevice() dingtianhong

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.