diff options
author | dingtianhong <dingtianhong@huawei.com> | 2013-05-27 15:53:31 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-05-28 02:18:50 -0400 |
commit | da6e378ba918cd0feeb90eeb84d8b42148bb0c82 (patch) | |
tree | 7ffc6e756d49f67205b5e05d3284d81cda06cc7a /include/linux/netpoll.h | |
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 'include/linux/netpoll.h')
-rw-r--r-- | include/linux/netpoll.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/netpoll.h b/include/linux/netpoll.h index fa2cb76a7029..f3c7c24bec1c 100644 --- a/include/linux/netpoll.h +++ b/include/linux/netpoll.h | |||
@@ -53,10 +53,10 @@ struct netpoll_info { | |||
53 | }; | 53 | }; |
54 | 54 | ||
55 | #ifdef CONFIG_NETPOLL | 55 | #ifdef CONFIG_NETPOLL |
56 | extern int netpoll_rx_disable(struct net_device *dev); | 56 | extern void netpoll_rx_disable(struct net_device *dev); |
57 | extern void netpoll_rx_enable(struct net_device *dev); | 57 | extern void netpoll_rx_enable(struct net_device *dev); |
58 | #else | 58 | #else |
59 | static inline int netpoll_rx_disable(struct net_device *dev) { return 0; } | 59 | static inline void netpoll_rx_disable(struct net_device *dev) { return; } |
60 | static inline void netpoll_rx_enable(struct net_device *dev) { return; } | 60 | static inline void netpoll_rx_enable(struct net_device *dev) { return; } |
61 | #endif | 61 | #endif |
62 | 62 | ||