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>
This commit is contained in:
parent
47b0c98db4
commit
7b20f7b353
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user