Messages in this thread Patch in this message | | | From | Michael Straube <> | Subject | [PATCH 4/5] staging: rtl8723bs: remove comparsions to true | Date | Sat, 12 Sep 2020 10:45:19 +0200 |
| |
Remove unnecessary comparsions to boolean values.
Signed-off-by: Michael Straube <straube.linux@gmail.com> --- drivers/staging/rtl8723bs/core/rtw_wlan_util.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/staging/rtl8723bs/core/rtw_wlan_util.c b/drivers/staging/rtl8723bs/core/rtw_wlan_util.c index 7733d076af85..cad35ce0c21a 100644 --- a/drivers/staging/rtl8723bs/core/rtw_wlan_util.c +++ b/drivers/staging/rtl8723bs/core/rtw_wlan_util.c @@ -1767,9 +1767,9 @@ void update_wireless_mode(struct adapter *padapter) else if (pmlmeinfo->HT_enable) network_type = WIRELESS_11_24N; - if ((cckratesonly_included(rate, ratelen)) == true) + if (cckratesonly_included(rate, ratelen)) network_type |= WIRELESS_11B; - else if ((cckrates_included(rate, ratelen)) == true) + else if (cckrates_included(rate, ratelen)) network_type |= WIRELESS_11BG; else network_type |= WIRELESS_11G; -- 2.28.0
| |