From: Dan Carpenter Date: Mon, 15 Aug 2011 11:25:35 +0000 (+0300) Subject: libertas: handle mesh networks in lbs_iface_active() X-Git-Tag: MMI-PSA29.97-13-9~18194^2~254^2~252 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=bfe2ed8f4df2e7b6991c4039bb624dee5f8b6583;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git libertas: handle mesh networks in lbs_iface_active() 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 Acked-by: Dan Williams Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/libertas/dev.h b/drivers/net/wireless/libertas/dev.h index 814838916b82..b9ff0dc53e8d 100644 --- a/drivers/net/wireless/libertas/dev.h +++ b/drivers/net/wireless/libertas/dev.h @@ -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; }