diff options
author | dingtianhong <dingtianhong@huawei.com> | 2013-05-27 19:53:31 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-05-27 23:18:50 -0700 |
commit | da6e378ba918cd0feeb90eeb84d8b42148bb0c82 (patch) | |
tree | 7ffc6e756d49f67205b5e05d3284d81cda06cc7a /net/core/netpoll.c | |
parent | 87227b8b2d4d556a6924ad9af87450fdc3fcd7e3 (diff) |
netpoll: remove return value from netpoll_rx_disable()
The netpoll_rx_disable() will always return 0, it is no use and looks wordy,
so remove the unnecessary code and get rid of it in _dev_open and _dev_close.
Signed-off-by: Ding Tianhong <dingtianhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/netpoll.c')
-rw-r--r-- | net/core/netpoll.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/core/netpoll.c b/net/core/netpoll.c index cec074be8c4..37deedd48bc 100644 --- a/net/core/netpoll.c +++ b/net/core/netpoll.c @@ -247,7 +247,7 @@ static void netpoll_poll_dev(struct net_device *dev) zap_completion_queue(); } -int netpoll_rx_disable(struct net_device *dev) +void netpoll_rx_disable(struct net_device *dev) { struct netpoll_info *ni; int idx; @@ -257,7 +257,6 @@ int netpoll_rx_disable(struct net_device *dev) if (ni) down(&ni->dev_lock); srcu_read_unlock(&netpoll_srcu, idx); - return 0; } EXPORT_SYMBOL(netpoll_rx_disable); |