From: Devendra Naga Date: Tue, 4 Sep 2012 19:24:41 +0000 (+0530) Subject: staging: rtl8192e: remove casting of returned pointer from kmalloc X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=b4797fef980664ea5923b24795ed365177d68525;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git staging: rtl8192e: remove casting of returned pointer from kmalloc as per Documentation/CodingStyle we dont need to cast the return of kmalloc Signed-off-by: Devendra Naga Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rtl8192e/rtllib_softmac.c b/drivers/staging/rtl8192e/rtllib_softmac.c index 22a276410001..8027ceb53c58 100644 --- a/drivers/staging/rtl8192e/rtllib_softmac.c +++ b/drivers/staging/rtl8192e/rtllib_softmac.c @@ -3410,8 +3410,7 @@ static int rtllib_wpa_set_encryption(struct rtllib_device *ieee, lib80211_crypt_delayed_deinit(&ieee->crypt_info, crypt); - new_crypt = (struct lib80211_crypt_data *) - kmalloc(sizeof(*new_crypt), GFP_KERNEL); + new_crypt = kmalloc(sizeof(*new_crypt), GFP_KERNEL); if (new_crypt == NULL) { ret = -ENOMEM; goto done;