diff options
author | Larry Finger <Larry.Finger@lwfinger.net> | 2013-12-06 08:07:12 +0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-12-10 00:37:55 +0400 |
commit | 7f3dbb563658f6f24ba52ba336f652d9f9b5fca4 (patch) | |
tree | c51d95ce9d97dd56d61bb1fdc4d74ce51e6f1f83 /drivers/net/wireless/rtlwifi | |
parent | fa643ae2ce4e75413623a51845a2fd5c9fae4ec0 (diff) | |
download | linux-7f3dbb563658f6f24ba52ba336f652d9f9b5fca4.tar.xz |
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) 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); |