Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c04ec806 authored by Herbert Xu's avatar Herbert Xu Committed by David S. Miller
Browse files

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: default avatarHerbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 1ab6c163
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -867,7 +867,6 @@ void netpoll_cleanup(struct netpoll *np)
				ops = np->dev->netdev_ops;
				if (ops->ndo_netpoll_cleanup)
					ops->ndo_netpoll_cleanup(np->dev);
				else
				np->dev->npinfo = NULL;
			}
		}