From: simran singhal Date: Sat, 11 Feb 2017 20:40:09 +0000 (+0530) Subject: staging: rtl8192u: Clean up comparison to NULL X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=ce53f4fab7acc639962551b5727ac086aa0ec452;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git staging: rtl8192u: Clean up comparison to NULL Checkpatch recommended changes. Signed-off-by: simran singhal Signed-off-by: Greg Kroah-Hartman --- 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;