mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-20 05:31:15 +00:00
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>
This commit is contained in:
parent
87227b8b2d
commit
da6e378ba9
3 changed files with 7 additions and 15 deletions
|
@ -53,10 +53,10 @@ struct netpoll_info {
|
|||
};
|
||||
|
||||
#ifdef CONFIG_NETPOLL
|
||||
extern int netpoll_rx_disable(struct net_device *dev);
|
||||
extern void netpoll_rx_disable(struct net_device *dev);
|
||||
extern void netpoll_rx_enable(struct net_device *dev);
|
||||
#else
|
||||
static inline int netpoll_rx_disable(struct net_device *dev) { return 0; }
|
||||
static inline void netpoll_rx_disable(struct net_device *dev) { return; }
|
||||
static inline void netpoll_rx_enable(struct net_device *dev) { return; }
|
||||
#endif
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue