staging: rtl8188eu: Remove 'spinlock_t recvbuf_lock' from struct recv_buf
authornavin patidar <navin.patidar@gmail.com>
Sat, 3 May 2014 11:45:22 +0000 (17:15 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 4 May 2014 00:30:10 +0000 (20:30 -0400)
recvbuf_lock is initialized inside rtl8188eu_init_recv_priv() but never used.

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 98a79ba45d494728143894de5867480e891f16a5..52d83a4afd3530942b53becd90c22a81b29bebea 100644 (file)
@@ -71,7 +71,6 @@ int   rtl8188eu_init_recv_priv(struct adapter *padapter)
        precvbuf = (struct recv_buf *)precvpriv->precv_buf;
 
        for (i = 0; i < NR_RECVBUFF; i++) {
-               spin_lock_init(&precvbuf->recvbuf_lock);
                precvbuf->alloc_sz = MAX_RECVBUF_SZ;
                res = rtw_os_recvbuf_resource_alloc(padapter, precvbuf);
                if (res == _FAIL)
index 103849fdb6f8f0ed9beb449a12fdfacbdd226943..4a19a0657f3a1433351003032fb7c3f96629e128 100644 (file)
@@ -235,7 +235,6 @@ struct sta_recv_priv {
 };
 
 struct recv_buf {
-       spinlock_t recvbuf_lock;
        u32     ref_cnt;
        struct adapter *adapter;
        u8      *pbuf;