From: Payal Kshirsagar Date: Sun, 31 Mar 2019 18:03:48 +0000 (+0530) Subject: staging: rtlwifi: use !x in place of NULL comparison X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=198980e079a4de0da49ec0d88f07f9124b4fbcd0;p=linux.git staging: rtlwifi: use !x in place of NULL comparison Challenge suggested by coccinelle. Avoid NULL comparison, compare using boolean operator. Signed-off-by: Payal Kshirsagar Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rtlwifi/btcoexist/halbtcoutsrc.c b/drivers/staging/rtlwifi/btcoexist/halbtcoutsrc.c index 2354032fad136..9f11609cc1645 100644 --- a/drivers/staging/rtlwifi/btcoexist/halbtcoutsrc.c +++ b/drivers/staging/rtlwifi/btcoexist/halbtcoutsrc.c @@ -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;