netpoll: Set npinfo to NULL even with ndo_netpoll_cleanup
authorHerbert Xu <herbert@gondor.apana.org.au>
Thu, 10 Jun 2010 16:12:42 +0000 (16:12 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 15 Jun 2010 17:58:37 +0000 (10:58 -0700)
commitc04ec8063d3a89e5ae933c7b4be04476fe65c6de
tree5d426d3435a7b62557ea8121aca73bf70ccb2f76
parent1ab6c163dee279559e3a62d774af7e4c4c9b4c67
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>
net/core/netpoll.c