mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 21:59:12 -04:00
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
1 changed files with 1 additions and 2 deletions
|
|
@ -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 a new issue