From: Herbert Xu Date: Thu, 10 Jun 2010 16:12:42 +0000 (+0000) Subject: netpoll: Set npinfo to NULL even with ndo_netpoll_cleanup X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c04ec8063d3a89e5ae933c7b4be04476fe65c6de;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git 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 Signed-off-by: David S. Miller --- 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) ops = np->dev->netdev_ops; if (ops->ndo_netpoll_cleanup) ops->ndo_netpoll_cleanup(np->dev); - else - np->dev->npinfo = NULL; + np->dev->npinfo = NULL; } }