rtlwifi: rtl8192c-common: Fix sparse warning
authorLarry Finger <Larry.Finger@lwfinger.net>
Fri, 6 Dec 2013 04:07:12 +0000 (22:07 -0600)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 9 Dec 2013 20:37:55 +0000 (15:37 -0500)
Sparse reports the following:

  CHECK   drivers/net/wireless/rtlwifi/rtl8192c/dm_common.c
drivers/net/wireless/rtlwifi/rtl8192c/dm_common.c:570:34: warning: dubious: !x & y

There should be a parens around the expression.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rtlwifi/rtl8192c/dm_common.c

index fd7e4a7c94dea1d4ad1e59d79c0633340964b8a7..eb78fd8607f7e456baf79066cb5e00a7c00e5d88 100644 (file)
@@ -567,7 +567,7 @@ static void rtl92c_dm_dig(struct ieee80211_hw *hw)
 
        if (rtlpriv->dm.dm_initialgain_enable == false)
                return;
-       if (!rtlpriv->dm.dm_flag & DYNAMIC_FUNC_DIG)
+       if (!(rtlpriv->dm.dm_flag & DYNAMIC_FUNC_DIG))
                return;
 
        rtl92c_dm_ctrl_initgain_by_twoport(hw);