diff options
| author | 2019-03-31 23:33:48 +0530 | |
|---|---|---|
| committer | 2019-04-01 19:23:42 +0200 | |
| commit | 198980e079a4de0da49ec0d88f07f9124b4fbcd0 (patch) | |
| tree | d92e7733bcfde555e29c42fdccf411be4d02c361 | |
| parent | staging: rtlwifi: halmac: halmac_api.c: Compress two lines into one line (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>
| -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; |
