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

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
...@@ -33,7 +33,7 @@ static const char *const gl_btc_wifi_freq_string[] = { ...@@ -33,7 +33,7 @@ static const char *const gl_btc_wifi_freq_string[] = {
static bool halbtc_is_bt_coexist_available(struct btc_coexist *btcoexist) 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 false;
return true; return true;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment