Skip to content

Commit

Permalink
net: Remove return value from list_netdevice()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
dingtianhong authored and David S. Miller committed Apr 22, 2013
1 parent 3fb62c5 commit 53759be
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions net/core/dev.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand All @@ -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
Expand Down

0 comments on commit 53759be

Please sign in to comment.