mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +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
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue