staging: rtl8188eu: Remove 'int transfer_len' from struct recv_buf
authornavin patidar <navin.patidar@gmail.com>
Sat, 3 May 2014 11:45:24 +0000 (17:15 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 4 May 2014 00:30:10 +0000 (20:30 -0400)
Driver is not making any use of value stored in this variable.

Signed-off-by: navin patidar <navin.patidar@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/hal/rtl8188eu_recv.c
drivers/staging/rtl8188eu/hal/usb_ops_linux.c
drivers/staging/rtl8188eu/include/rtw_recv.h
drivers/staging/rtl8188eu/os_dep/recv_linux.c

index 52d83a4afd3530942b53becd90c22a81b29bebea..ee7fa6408fe416145d8b12de5e2810e14fc392bf 100644 (file)
@@ -30,8 +30,6 @@
 
 void rtl8188eu_init_recvbuf(struct adapter *padapter, struct recv_buf *precvbuf)
 {
-       precvbuf->transfer_len = 0;
-
        precvbuf->len = 0;
 
        precvbuf->ref_cnt = 0;
index 1fa5370f1da60d4622f9232d6d1836f5a725bf36..285cb5f3f727cdd298e5bece3c498b10b8cf3dbe 100644 (file)
@@ -518,7 +518,6 @@ static void usb_read_port_complete(struct urb *purb, struct pt_regs *regs)
                } else {
                        rtw_reset_continual_urb_error(adapter_to_dvobj(adapt));
 
-                       precvbuf->transfer_len = purb->actual_length;
                        skb_put(precvbuf->pskb, purb->actual_length);
                        skb_queue_tail(&precvpriv->rx_skb_queue, precvbuf->pskb);
 
index bf9af773acf876e093c7e2123ccf2a609ada8056..cac8acb1052288696e156822d1b643475f7f3e82 100644 (file)
@@ -247,7 +247,6 @@ struct recv_buf {
        struct urb *purb;
        u32 alloc_sz;
        u8  irp_pending;
-       int  transfer_len;
        struct sk_buff *pskb;
        u8      reuse;
 };
index da397e4c6773de23c15b69a126d10241aa96b632..083833908e93f6a25fd6ad8b5c0f52cde4855421 100644 (file)
@@ -67,7 +67,6 @@ int rtw_os_recvbuf_resource_alloc(struct adapter *padapter,
        precvbuf->phead = NULL;
        precvbuf->ptail = NULL;
        precvbuf->pend = NULL;
-       precvbuf->transfer_len = 0;
        precvbuf->len = 0;
        return res;
 }