staging: r8188eu: remove unused field list
authorAbdun Nihaal <abdun.nihaal@gmail.com>
Thu, 3 Mar 2022 15:51:03 +0000 (21:21 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 14 Mar 2022 17:29:12 +0000 (18:29 +0100)
The field list in struct recv_buf is initialized but not used.
Remove it.

Signed-off-by: Abdun Nihaal <abdun.nihaal@gmail.com>
Link: https://lore.kernel.org/r/558177d9165792a99f6efb439f6f537e13da705b.1646321515.git.abdun.nihaal@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/hal/rtl8188eu_recv.c
drivers/staging/r8188eu/include/rtw_recv.h

index 6af72b3..341605c 100644 (file)
@@ -54,7 +54,6 @@ int   rtl8188eu_init_recv_priv(struct adapter *padapter)
        precvbuf = (struct recv_buf *)precvpriv->precv_buf;
 
        for (i = 0; i < NR_RECVBUFF; i++) {
-               INIT_LIST_HEAD(&precvbuf->list);
                spin_lock_init(&precvbuf->recvbuf_lock);
                precvbuf->alloc_sz = MAX_RECVBUF_SZ;
                res = rtw_os_recvbuf_resource_alloc(padapter, precvbuf);
index d2f1c71..90482cd 100644 (file)
@@ -207,7 +207,6 @@ struct sta_recv_priv {
 };
 
 struct recv_buf {
-       struct list_head list;
        spinlock_t recvbuf_lock;
        u32     ref_cnt;
        struct adapter *adapter;