diff options
author | Payal Kshirsagar <payal.s.kshirsagar.98@gmail.com> | 2019-03-31 23:33:48 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-04-01 19:23:42 +0200 |
commit | 198980e079a4de0da49ec0d88f07f9124b4fbcd0 (patch) | |
tree | d92e7733bcfde555e29c42fdccf411be4d02c361 /drivers/staging | |
parent | 0514b848a82bfc2aceeb4b436912ff146c63f580 (diff) |
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>
Diffstat (limited to 'drivers/staging')
-rw-r--r-- | drivers/staging/rtlwifi/btcoexist/halbtcoutsrc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/rtlwifi/btcoexist/halbtcoutsrc.c b/drivers/staging/rtlwifi/btcoexist/halbtcoutsrc.c index 2354032fad13..9f11609cc164 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; |