From: Sachin Kamat Date: Wed, 28 May 2014 12:06:24 +0000 (+0530) Subject: staging: rtl8723au: Remove redundant casting in rtw_mlme.c X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=47b0c98db487c5fdb55a7b9e44513052f7a3e7e1;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git staging: rtl8723au: Remove redundant casting in rtw_mlme.c Casting value returned by k[cmz]alloc is useless. Signed-off-by: Sachin Kamat Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rtl8723au/core/rtw_mlme.c b/drivers/staging/rtl8723au/core/rtw_mlme.c index 547986ac0102..7170258d2601 100644 --- a/drivers/staging/rtl8723au/core/rtw_mlme.c +++ b/drivers/staging/rtl8723au/core/rtw_mlme.c @@ -1824,8 +1824,7 @@ int rtw_set_auth23a(struct rtw_adapter * adapter, goto exit; } - psetauthparm = (struct setauth_parm*) - kzalloc(sizeof(struct setauth_parm), GFP_KERNEL); + psetauthparm = kzalloc(sizeof(struct setauth_parm), GFP_KERNEL); if (!psetauthparm) { kfree(pcmd); res = _FAIL; @@ -1866,7 +1865,7 @@ int rtw_set_key23a(struct rtw_adapter *adapter, goto exit; } - pcmd = (struct cmd_obj *)kzalloc(sizeof(struct cmd_obj), GFP_KERNEL); + pcmd = kzalloc(sizeof(struct cmd_obj), GFP_KERNEL); if (!pcmd) { res = _FAIL; /* try again */ goto exit;