Commit 7b20f7b3 authored by Sachin Kamat's avatar Sachin Kamat Committed by Greg Kroah-Hartman

staging: rtl8723au: Remove redundant casting in rtw_recv.c

Casting value returned by k[cmz]alloc is useless.
Signed-off-by: default avatarSachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 47b0c98d
...@@ -58,8 +58,7 @@ int _rtw_init_recv_priv23a(struct recv_priv *precvpriv, ...@@ -58,8 +58,7 @@ int _rtw_init_recv_priv23a(struct recv_priv *precvpriv,
precvpriv->adapter = padapter; precvpriv->adapter = padapter;
for (i = 0; i < NR_RECVFRAME ; i++) { for (i = 0; i < NR_RECVFRAME ; i++) {
precvframe = (struct recv_frame *) precvframe = kzalloc(sizeof(struct recv_frame), GFP_KERNEL);
kzalloc(sizeof(struct recv_frame), GFP_KERNEL);
if (!precvframe) if (!precvframe)
break; break;
INIT_LIST_HEAD(&precvframe->list); INIT_LIST_HEAD(&precvframe->list);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment