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 814838916b8271cfa390c3e7458dd09ec300bf1f..b9ff0dc53e8df047e4d01f2c2704073f32d96891 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;
 }