summaryrefslogtreecommitdiff
path: root/drivers/staging
diff options
context:
space:
mode:
authorsimran singhal <singhalsimran0@gmail.com>2017-02-12 02:10:09 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-02-12 13:42:59 +0100
commitce53f4fab7acc639962551b5727ac086aa0ec452 (patch)
treefc7e40dadc8303262f502d3540e76c0977d56d73 /drivers/staging
parenta090189cd07a0526788d2af347522c8589e121c5 (diff)
staging: rtl8192u: Clean up comparison to NULL
Checkpatch recommended changes. Signed-off-by: simran singhal <singhalsimran0@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging')
-rw-r--r--drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_ccmp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_ccmp.c b/drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_ccmp.c
index 21abb2df7e19..eaeb9dc97b72 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;