staging: rtl8188eu: fix comparsions to true
authorMichael Straube <straube.linux@gmail.com>
Mon, 3 Sep 2018 18:24:43 +0000 (20:24 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 10 Sep 2018 09:17:48 +0000 (11:17 +0200)
Use if(x) instead of if(x == true).

Signed-off-by: Michael Straube <straube.linux@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/core/rtw_wlan_util.c

index 8f87db11f87ea0c49b5a7f6f771f398ff34c5e56..20d7bba2cfd485d6a065ac6e19d51e306696c072 100644 (file)
@@ -113,9 +113,9 @@ u8 judge_network_type(struct adapter *padapter, unsigned char *rate, int ratelen
        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;
@@ -1426,9 +1426,9 @@ void update_wireless_mode(struct adapter *padapter)
        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;