Commit 198980e0 authored by Payal Kshirsagar's avatar Payal Kshirsagar Committed by Greg Kroah-Hartman
Browse files

staging: rtlwifi: use !x in place of NULL comparison



Challenge suggested by coccinelle.
Avoid NULL comparison, compare using boolean operator.

Signed-off-by: default avatarPayal Kshirsagar <payal.s.kshirsagar.98@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 0514b848
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;