summaryrefslogtreecommitdiffstats
path: root/net/core/netpoll.c
diff options
context:
space:
mode:
authordingtianhong2013-05-27 21:53:31 +0200
committerDavid S. Miller2013-05-28 08:18:50 +0200
commitda6e378ba918cd0feeb90eeb84d8b42148bb0c82 (patch)
tree7ffc6e756d49f67205b5e05d3284d81cda06cc7a /net/core/netpoll.c
parentnet: micrel : ks8851-ml: add dt support (diff)
downloadkernel-qcow2-linux-da6e378ba918cd0feeb90eeb84d8b42148bb0c82.tar.gz
kernel-qcow2-linux-da6e378ba918cd0feeb90eeb84d8b42148bb0c82.tar.xz
kernel-qcow2-linux-da6e378ba918cd0feeb90eeb84d8b42148bb0c82.zip
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.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/net/core/netpoll.c b/net/core/netpoll.c
index cec074be8c43..37deedd48bcc 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);