Skip to content

Commit e5cd6ce

Browse files
himangi774linvjw
authored andcommitted
rtlwifi: btcoexist: adjust double test
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 <[email protected]> Acked-by: Larry.Finger <[email protected]> Signed-off-by: John W. Linville <[email protected]>
1 parent 9837baa commit e5cd6ce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/wireless/rtlwifi/btcoexist/halbtcoutsrc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ static bool halbtc_legacy(struct rtl_priv *adapter)
101101

102102
bool is_legacy = false;
103103

104-
if ((mac->mode == WIRELESS_MODE_B) || (mac->mode == WIRELESS_MODE_B))
104+
if ((mac->mode == WIRELESS_MODE_B) || (mac->mode == WIRELESS_MODE_G))
105105
is_legacy = true;
106106

107107
return is_legacy;

0 commit comments

Comments
 (0)