Skip to content

Commit

Permalink
rtlwifi: btcoexist: adjust double test
Browse files Browse the repository at this point in the history
Rewrite a duplicated test to test the correct value

The Coccinelle semantic patch that finds this problem is:

// <smpl>
@@
expression E;
@@

(
* E
  || ... || E
|
* E
  && ... && E
)
// </smpl>

Signed-off-by: Himangi Saraogi <himangi774@gmail.com>
Acked-by: Larry.Finger <Larry.Finger@lwfinger.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Himangi Saraogi authored and John W. Linville committed Aug 25, 2014
1 parent 9837baa commit e5cd6ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/wireless/rtlwifi/btcoexist/halbtcoutsrc.c
Original file line number Diff line number Diff line change
@@ -101,7 +101,7 @@ static bool halbtc_legacy(struct rtl_priv *adapter)

bool is_legacy = false;

if ((mac->mode == WIRELESS_MODE_B) || (mac->mode == WIRELESS_MODE_B))
if ((mac->mode == WIRELESS_MODE_B) || (mac->mode == WIRELESS_MODE_G))
is_legacy = true;

return is_legacy;

0 comments on commit e5cd6ce

Please sign in to comment.