Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1577661 > unrolled thread

[PATCH] staging: rtl8192u: Clean up comparison to NULL

Started bysimran singhal <singhalsimran0@gmail.com>
First post2017-02-09 16:00 +0100
Last post2017-02-09 16:00 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel


Contents

  [PATCH] staging: rtl8192u: Clean up comparison to NULL simran singhal <singhalsimran0@gmail.com> - 2017-02-09 16:00 +0100

#1577661 — [PATCH] staging: rtl8192u: Clean up comparison to NULL

Fromsimran singhal <singhalsimran0@gmail.com>
Date2017-02-09 16:00 +0100
Subject[PATCH] staging: rtl8192u: Clean up comparison to NULL
Message-ID<t8Ymt-7qf-9@gated-at.bofh.it>
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

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web