From: Dan Carpenter Date: Thu, 22 Jul 2010 12:21:02 +0000 (+0200) Subject: libertas: precedence bug X-Git-Tag: v2.6.36-rc1~571^2~64^2~56 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bd75eb854300c7e09eaf067572498abdeb9d3424;p=platform%2Fkernel%2Flinux-exynos.git libertas: precedence bug Negate has precedence over comparison so the original test was always false. (Neither 0 nor 1 are equal to NL80211_IFTYPE_MONITOR). Signed-off-by: Dan Carpenter Acked-by: Dan Williams Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/libertas/tx.c b/drivers/net/wireless/libertas/tx.c index 411a3bb..8000ca6 100644 --- a/drivers/net/wireless/libertas/tx.c +++ b/drivers/net/wireless/libertas/tx.c @@ -180,7 +180,7 @@ void lbs_send_tx_feedback(struct lbs_private *priv, u32 try_count) { struct tx_radiotap_hdr *radiotap_hdr; - if (!priv->wdev->iftype == NL80211_IFTYPE_MONITOR || + if (priv->wdev->iftype != NL80211_IFTYPE_MONITOR || priv->currenttxskb == NULL) return;