diff options
author | simran singhal <singhalsimran0@gmail.com> | 2017-02-12 02:10:09 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-02-12 13:42:59 +0100 |
commit | ce53f4fab7acc639962551b5727ac086aa0ec452 (patch) | |
tree | fc7e40dadc8303262f502d3540e76c0977d56d73 /drivers/staging | |
parent | a090189cd07a0526788d2af347522c8589e121c5 (diff) | |
download | blackbird-op-linux-ce53f4fab7acc639962551b5727ac086aa0ec452.tar.gz blackbird-op-linux-ce53f4fab7acc639962551b5727ac086aa0ec452.zip |
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.c | 2 |
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; |