diff options
author | Larry Finger <Larry.Finger@lwfinger.net> | 2013-12-05 23:07:12 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-12-09 15:37:55 -0500 |
commit | 7f3dbb563658f6f24ba52ba336f652d9f9b5fca4 (patch) | |
tree | c51d95ce9d97dd56d61bb1fdc4d74ce51e6f1f83 /drivers/net/wireless/rtlwifi | |
parent | fa643ae2ce4e75413623a51845a2fd5c9fae4ec0 (diff) |
rtlwifi: rtl8192c-common: Fix sparse warning
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>
Diffstat (limited to 'drivers/net/wireless/rtlwifi')
-rw-r--r-- | drivers/net/wireless/rtlwifi/rtl8192c/dm_common.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/rtlwifi/rtl8192c/dm_common.c b/drivers/net/wireless/rtlwifi/rtl8192c/dm_common.c index fd7e4a7c94de..eb78fd8607f7 100644 --- a/drivers/net/wireless/rtlwifi/rtl8192c/dm_common.c +++ b/drivers/net/wireless/rtlwifi/rtl8192c/dm_common.c | |||
@@ -567,7 +567,7 @@ static void rtl92c_dm_dig(struct ieee80211_hw *hw) | |||
567 | 567 | ||
568 | if (rtlpriv->dm.dm_initialgain_enable == false) | 568 | if (rtlpriv->dm.dm_initialgain_enable == false) |
569 | return; | 569 | return; |
570 | if (!rtlpriv->dm.dm_flag & DYNAMIC_FUNC_DIG) | 570 | if (!(rtlpriv->dm.dm_flag & DYNAMIC_FUNC_DIG)) |
571 | return; | 571 | return; |
572 | 572 | ||
573 | rtl92c_dm_ctrl_initgain_by_twoport(hw); | 573 | rtl92c_dm_ctrl_initgain_by_twoport(hw); |