mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-07 15:15:29 +00:00
netpoll: Set npinfo to NULL even with ndo_netpoll_cleanup
Since we have to NULL npinfo regardless of whether there is a ndo_netpoll_cleanup, it makes sense to do this unconditionally in netpoll_cleanup rather than having every driver do it by themselves. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
1ab6c163de
commit
c04ec8063d
1 changed files with 1 additions and 2 deletions
|
@ -867,7 +867,6 @@ void netpoll_cleanup(struct netpoll *np)
|
||||||
ops = np->dev->netdev_ops;
|
ops = np->dev->netdev_ops;
|
||||||
if (ops->ndo_netpoll_cleanup)
|
if (ops->ndo_netpoll_cleanup)
|
||||||
ops->ndo_netpoll_cleanup(np->dev);
|
ops->ndo_netpoll_cleanup(np->dev);
|
||||||
else
|
|
||||||
np->dev->npinfo = NULL;
|
np->dev->npinfo = NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue