staging: rtl8723au: Remove redundant casting in rtw_recv.c
authorSachin Kamat <sachin.kamat@linaro.org>
Wed, 28 May 2014 12:06:25 +0000 (17:36 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 28 May 2014 21:36:04 +0000 (14:36 -0700)
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>
drivers/staging/rtl8723au/core/rtw_recv.c

index f21aa20..690970e 100644 (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);