Staging: rtl8723bs: Remove comparison to true
authorShreeya Patel <shreeya.patel23498@gmail.com>
Sun, 8 Mar 2020 20:17:03 +0000 (01:47 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 10 Mar 2020 09:15:23 +0000 (10:15 +0100)
Remove comparison to "true" from if statement to
maintain the kernel coding style.

Reported by checkpatch.pl

Signed-off-by: Shreeya Patel <shreeya.patel23498@gmail.com>
Link: https://lore.kernel.org/r/20200308201703.31709-1-shreeya.patel23498@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/core/rtw_ap.c

index 7117d16a30f9718381d6c972ab306375d8d49891..a76e813307560ef90e5233e9082488a07f1eee46 100644 (file)
@@ -2417,7 +2417,7 @@ void stop_ap_mode(struct adapter *padapter)
                paclnode = LIST_CONTAINOR(plist, struct rtw_wlan_acl_node, list);
                plist = get_next(plist);
 
-               if (paclnode->valid == true) {
+               if (paclnode->valid) {
                        paclnode->valid = false;
 
                        list_del_init(&paclnode->list);