]> git.karo-electronics.de Git - linux-beck.git/commitdiff
staging: rtl8723au: Remove another unused queue from struct recv_priv
authorJes Sorensen <Jes.Sorensen@redhat.com>
Fri, 9 May 2014 13:04:23 +0000 (15:04 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 15 May 2014 20:12:02 +0000 (13:12 -0700)
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723au/hal/rtl8723au_recv.c
drivers/staging/rtl8723au/hal/usb_halinit.c
drivers/staging/rtl8723au/include/rtw_recv.h

index 3a266abe9ad59a1e59c61e9cb0774c857cb9daf1..5e8cd0e593879c3b9233a4215ba28fae664646d1 100644 (file)
@@ -48,9 +48,6 @@ int rtl8723au_init_recv_priv(struct rtw_adapter *padapter)
        if (!precvpriv->int_in_buf)
                DBG_8723A("alloc_mem for interrupt in endpoint fail !!!!\n");
 
-       /* init recv_buf */
-       _rtw_init_queue23a(&precvpriv->free_recv_buf_queue);
-
        size = NR_RECVBUFF * sizeof(struct recv_buf);
        precvpriv->precv_buf = kzalloc(size, GFP_KERNEL);
        if (!precvpriv->precv_buf) {
@@ -74,8 +71,6 @@ int rtl8723au_init_recv_priv(struct rtw_adapter *padapter)
                precvbuf++;
        }
 
-       precvpriv->free_recv_buf_queue_cnt = NR_RECVBUFF;
-
        skb_queue_head_init(&precvpriv->rx_skb_queue);
        skb_queue_head_init(&precvpriv->free_recv_skb_queue);
 
index 20c11353a6106b197eb16a8a8c74ef6695506b75..edddc20f24ee7c7077224c0d6a2b2525dc2e5578 100644 (file)
@@ -1253,7 +1253,6 @@ static unsigned int rtl8723au_inirp_init(struct rtw_adapter *Adapter)
                        goto exit;
                }
                precvbuf++;
-               precvpriv->free_recv_buf_queue_cnt--;
        }
        _read_interrupt = io_ops->_read_interrupt;
        if (_read_interrupt(Adapter, RECV_INT_IN_ADDR) == false) {
index 3bd836fc74d8cd7af1cd9dd0d52d6ac2014213c8..e22ce645667f23e656d67cf2f776d8978bc20ce2 100644 (file)
@@ -199,8 +199,6 @@ struct recv_priv {
        struct sk_buff_head free_recv_skb_queue;
        struct sk_buff_head rx_skb_queue;
        u8 *precv_buf;
-       struct rtw_queue        free_recv_buf_queue;
-       u32     free_recv_buf_queue_cnt;
 
        /* For display the phy informatiom */
        u8 is_signal_dbg;       /*  for debug */