diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2010-06-10 12:12:42 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-06-15 13:58:37 -0400 |
commit | c04ec8063d3a89e5ae933c7b4be04476fe65c6de (patch) | |
tree | 5d426d3435a7b62557ea8121aca73bf70ccb2f76 /net/core | |
parent | 1ab6c163dee279559e3a62d774af7e4c4c9b4c67 (diff) |
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>
Diffstat (limited to 'net/core')
-rw-r--r-- | net/core/netpoll.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/core/netpoll.c b/net/core/netpoll.c index e034342c819c..19ff66079f76 100644 --- a/net/core/netpoll.c +++ b/net/core/netpoll.c | |||
@@ -867,8 +867,7 @@ void netpoll_cleanup(struct netpoll *np) | |||
867 | ops = np->dev->netdev_ops; | 867 | ops = np->dev->netdev_ops; |
868 | if (ops->ndo_netpoll_cleanup) | 868 | if (ops->ndo_netpoll_cleanup) |
869 | ops->ndo_netpoll_cleanup(np->dev); | 869 | ops->ndo_netpoll_cleanup(np->dev); |
870 | else | 870 | np->dev->npinfo = NULL; |
871 | np->dev->npinfo = NULL; | ||
872 | } | 871 | } |
873 | } | 872 | } |
874 | 873 | ||