staging: rtlwifi: use !x in place of NULL comparison
authorPayal Kshirsagar <payal.s.kshirsagar.98@gmail.com>
Sun, 31 Mar 2019 18:03:48 +0000 (23:33 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 1 Apr 2019 17:23:42 +0000 (19:23 +0200)
Challenge suggested by coccinelle.
Avoid NULL comparison, compare using boolean operator.

Signed-off-by: Payal Kshirsagar <payal.s.kshirsagar.98@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtlwifi/btcoexist/halbtcoutsrc.c

index 2354032fad136f2e840f0ec288cd38cc4727b834..9f11609cc164516bd4fd0a48e5875d313ebacc39 100644 (file)
@@ -33,7 +33,7 @@ static const char *const gl_btc_wifi_freq_string[] = {
 
 static bool halbtc_is_bt_coexist_available(struct btc_coexist *btcoexist)
 {
-       if (!btcoexist->binded || NULL == btcoexist->adapter)
+       if (!btcoexist->binded || !btcoexist->adapter)
                return false;
 
        return true;