提交 7b20f7b3 编写于 作者: S Sachin Kamat 提交者: Greg Kroah-Hartman

staging: rtl8723au: Remove redundant casting in rtw_recv.c

Casting value returned by k[cmz]alloc is useless.
Signed-off-by: NSachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 47b0c98d
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册