From: Sachin Kamat Date: Thu, 29 May 2014 11:35:19 +0000 (+0530) Subject: staging: rtl8723au: Remove redundant casting in rtw_mlme.c X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=db5767a3f9715540411d9c1cf2dfb4aeec366893;p=openwrt%2Fstaging%2Fblogic.git staging: rtl8723au: Remove redundant casting in rtw_mlme.c Casting value returned by kzalloc 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 ab95ef0d80fb..799338b95afc 100644 --- a/drivers/staging/rtl8723au/core/rtw_mlme.c +++ b/drivers/staging/rtl8723au/core/rtw_mlme.c @@ -1820,7 +1820,7 @@ int rtw_set_auth23a(struct rtw_adapter * adapter, struct cmd_priv *pcmdpriv = &adapter->cmdpriv; int res = _SUCCESS; - 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;