libertas: handle mesh networks in lbs_iface_active()
authorDan Carpenter <error27@gmail.com>
Mon, 15 Aug 2011 11:25:35 +0000 (14:25 +0300)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 24 Aug 2011 18:41:42 +0000 (14:41 -0400)
There was an extra semicolon so the if condition wasn't used.  We
checked "priv->dev" twice instead of "priv->mesh_dev".

Signed-off-by: Dan Carpenter <error27@gmail.com>
Acked-by: Dan Williams <dcbw@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/libertas/dev.h

index 8148389..b9ff0dc 100644 (file)
@@ -190,8 +190,8 @@ static inline int lbs_iface_active(struct lbs_private *priv)
        int r;
 
        r = netif_running(priv->dev);
-       if (priv->mesh_dev);
-               r |= netif_running(priv->dev);
+       if (priv->mesh_dev)
+               r |= netif_running(priv->mesh_dev);
 
        return r;
 }