1
0
Fork 0

staging: rtl8723au: Remove redundant casting in rtw_xmit.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>
hifive-unleashed-5.1
Sachin Kamat 2014-05-28 17:36:28 +05:30 committed by Greg Kroah-Hartman
parent e1a35432cd
commit 4947f5e4e9
1 changed files with 2 additions and 4 deletions

View File

@ -77,8 +77,7 @@ int _rtw_init_xmit_priv23a(struct xmit_priv *pxmitpriv,
_rtw_init_queue23a(&pxmitpriv->free_xmit_queue);
for (i = 0; i < NR_XMITFRAME; i++) {
pxframe = (struct xmit_frame *)
kzalloc(sizeof(struct xmit_frame), GFP_KERNEL);
pxframe = kzalloc(sizeof(struct xmit_frame), GFP_KERNEL);
if (!pxframe)
break;
INIT_LIST_HEAD(&pxframe->list);
@ -127,8 +126,7 @@ int _rtw_init_xmit_priv23a(struct xmit_priv *pxmitpriv,
_rtw_init_queue23a(&pxmitpriv->free_xframe_ext_queue);
for (i = 0; i < num_xmit_extbuf; i++) {
pxframe = (struct xmit_frame *)
kzalloc(sizeof(struct xmit_frame), GFP_KERNEL);
pxframe = kzalloc(sizeof(struct xmit_frame), GFP_KERNEL);
if (!pxframe)
break;
INIT_LIST_HEAD(&pxframe->list);