staging: rtl8188eu: Remove 'alloc_sz' from struct recv_buf
authornavin patidar <navin.patidar@gmail.com>
Sat, 3 May 2014 11:45:28 +0000 (17:15 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 4 May 2014 00:30:11 +0000 (20:30 -0400)
Driver isn't making any use of value stored in alloc_sz 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/include/rtw_recv.h

index 41a0c0dc521ee4e1d211f6ca927c3ad49c55161c..3edc2cd1ac7b2fc9cc75acd80fc7370b6a1dc4e6 100644 (file)
@@ -61,7 +61,6 @@ int   rtl8188eu_init_recv_priv(struct adapter *padapter)
        precvbuf = (struct recv_buf *)precvpriv->precv_buf;
 
        for (i = 0; i < NR_RECVBUFF; i++) {
-               precvbuf->alloc_sz = MAX_RECVBUF_SZ;
                res = rtw_os_recvbuf_resource_alloc(padapter, precvbuf);
                if (res == _FAIL)
                        break;
index b955d73bb97c2343a9802a97c1214ade788f90bb..519ed4e17a61559925608334ee7e9a1f76e43a43 100644 (file)
@@ -240,7 +240,6 @@ struct recv_buf {
        u8      *pbuf;
        u32     len;
        struct urb *purb;
-       u32 alloc_sz;
        struct sk_buff *pskb;
        u8      reuse;
 };