staging: rtl8192u: Clean up comparison to NULL
authorsimran singhal <singhalsimran0@gmail.com>
Sat, 11 Feb 2017 20:40:09 +0000 (02:10 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 12 Feb 2017 12:42:59 +0000 (13:42 +0100)
Checkpatch recommended changes.

Signed-off-by: simran singhal <singhalsimran0@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192u/ieee80211/ieee80211_crypt_ccmp.c

index 21abb2df7e19b946ca89422bc92e283e31cbdc3b..eaeb9dc97b722bf057b552c5d4a4e97b014a9fcc 100644 (file)
@@ -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;