mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-04 10:12:16 +09:00
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 <payal.s.kshirsagar.98@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
0514b848a8
commit
198980e079
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user