staging: rtl8723au: Remove redundant casting in rtw_xmit.c
authorSachin Kamat <sachin.kamat@linaro.org>
Wed, 28 May 2014 12:06:28 +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_xmit.c

index d0dc6386d2373a075e595eb4b20d7e73ab6e84d0..b917526f570aa6ca55c11fa6ae7c515c87282a64 100644 (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);