1
0
Fork 0

staging: rtl8723au: Remove redundant casting in rtw_recv.c

Casting value returned by k[cmz]alloc is useless.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
wifi-calibration
Sachin Kamat 2014-05-28 17:36:25 +05:30 committed by Greg Kroah-Hartman
parent 47b0c98db4
commit 7b20f7b353
1 changed files with 1 additions and 2 deletions

View File

@ -58,8 +58,7 @@ int _rtw_init_recv_priv23a(struct recv_priv *precvpriv,
precvpriv->adapter = padapter;
for (i = 0; i < NR_RECVFRAME ; i++) {
precvframe = (struct recv_frame *)
kzalloc(sizeof(struct recv_frame), GFP_KERNEL);
precvframe = kzalloc(sizeof(struct recv_frame), GFP_KERNEL);
if (!precvframe)
break;
INIT_LIST_HEAD(&precvframe->list);