Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1577661
| From | simran singhal <singhalsimran0@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH] staging: rtl8192u: Clean up comparison to NULL |
| Date | 2017-02-09 16:00 +0100 |
| Message-ID | <t8Ymt-7qf-9@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
Checkpatch recommended changes. Signed-off-by: simran singhal <singhalsimran0@gmail.com> --- drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_ccmp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_ccmp.c b/drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_ccmp.c index 21abb2d..eaeb9dc 100644 --- a/drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_ccmp.c +++ b/drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_ccmp.c @@ -67,7 +67,7 @@ static void *ieee80211_ccmp_init(int key_idx) struct ieee80211_ccmp_data *priv; priv = kzalloc(sizeof(*priv), GFP_ATOMIC); - if (priv == NULL) + if (!priv) goto fail; priv->key_idx = key_idx; -- 2.7.4
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
[PATCH] staging: rtl8192u: Clean up comparison to NULL simran singhal <singhalsimran0@gmail.com> - 2017-02-09 16:00 +0100
csiph-web