staging: rtl8723au: Remove unnecessary abstraction rtw_os_recv_resource_alloc23a()
authorJes Sorensen <Jes.Sorensen@redhat.com>
Tue, 15 Apr 2014 17:44:41 +0000 (19:44 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 15 Apr 2014 18:04:08 +0000 (11:04 -0700)
No point calling a function to NULL a pointer that was just cleared in
the malloc call.

Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723au/core/rtw_recv.c
drivers/staging/rtl8723au/include/recv_osdep.h
drivers/staging/rtl8723au/os_dep/recv_linux.c

index 5d81a8c18218c9c4d5c0d72a8c9245625d9ad96b..644c3a132e59c56668627651235146e4c1b366cd 100644 (file)
@@ -79,8 +79,6 @@ int _rtw_init_recv_priv23a(struct recv_priv *precvpriv,
                list_add_tail(&precvframe->list,
                              &precvpriv->free_recv_queue.queue);
 
-               res = rtw_os_recv_resource_alloc23a(padapter, precvframe);
-
                precvframe->adapter = padapter;
                precvframe++;
        }
index 037ce5a64b9230a22694f2869ce76826b5402749..39809befb88cd6bf58dff5cba913776b17f67d33 100644 (file)
@@ -32,8 +32,6 @@ int   rtw_init_recv_priv(struct recv_priv *precvpriv, struct rtw_adapter *padapter
 void rtw_free_recv_priv (struct recv_priv *precvpriv);
 
 int rtw_os_recv_resource_init(struct recv_priv *precvpriv, struct rtw_adapter *padapter);
-int rtw_os_recv_resource_alloc23a(struct rtw_adapter *padapter, struct recv_frame *precvframe);
-void rtw_os_recv_resource_free(struct recv_priv *precvpriv);
 
 int rtw_os_recvbuf_resource_alloc23a(struct rtw_adapter *padapter, struct recv_buf *precvbuf);
 int rtw_os_recvbuf_resource_free23a(struct rtw_adapter *padapter, struct recv_buf *precvbuf);
index 1d54f9e4c4a9f1c7aa5724d75d778128b0fe546c..321aa282e3f25012db09da57df8b379e9d7d42d5 100644 (file)
 
 #include <usb_ops.h>
 
-/* alloc os related resource in struct recv_frame */
-int rtw_os_recv_resource_alloc23a(struct rtw_adapter *padapter,
-                              struct recv_frame *precvframe)
-{
-       int res = _SUCCESS;
-
-       precvframe->pkt = NULL;
-
-       return res;
-}
-
 /* alloc os related resource in struct recv_buf */
 int rtw_os_recvbuf_resource_alloc23a(struct rtw_adapter *padapter,
                                  struct recv_buf *precvbuf)