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

Signed-off-by: Abdun Nihaal <abdun.nihaal@gmail.com>
Link: https://lore.kernel.org/r/7ff76536af7478a00b300af9a6cb666e53d22aac.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/hal/usb_ops_linux.c
drivers/staging/r8188eu/include/rtw_recv.h
drivers/staging/r8188eu/os_dep/recv_linux.c

index 76bf57c52a7e1c47a1e41c4dbb499b94283b3ccd..7db5cfaa251fe7a7ec2cd4b28c8fa2b7b7423d7a 100644 (file)
@@ -16,7 +16,6 @@ void rtl8188eu_init_recvbuf(struct recv_buf *precvbuf)
 {
        if (precvbuf->pbuf) {
                precvbuf->pdata = precvbuf->pbuf;
-               precvbuf->phead = precvbuf->pbuf;
                precvbuf->ptail = precvbuf->pbuf;
                precvbuf->pend = precvbuf->pdata + MAX_RECVBUF_SZ;
        }
index 4953a431ffd771ea9e888e01a9374936c72d9bd9..8f4c059e09c95c491275ba4084d7f4b0ad874c18 100644 (file)
@@ -440,13 +440,11 @@ u32 rtw_read_port(struct adapter *adapter, u8 *rmem)
                alignment = tmpaddr & (RECVBUFF_ALIGN_SZ - 1);
                skb_reserve(precvbuf->pskb, (RECVBUFF_ALIGN_SZ - alignment));
 
-               precvbuf->phead = precvbuf->pskb->head;
                precvbuf->pdata = precvbuf->pskb->data;
                precvbuf->ptail = skb_tail_pointer(precvbuf->pskb);
                precvbuf->pend = skb_end_pointer(precvbuf->pskb);
                precvbuf->pbuf = precvbuf->pskb->data;
        } else { /* reuse skb */
-               precvbuf->phead = precvbuf->pskb->head;
                precvbuf->pdata = precvbuf->pskb->data;
                precvbuf->ptail = skb_tail_pointer(precvbuf->pskb);
                precvbuf->pend = skb_end_pointer(precvbuf->pskb);
index bafc10905bed20399cbd6275fe9cd1162f826ae4..e4f844507d17c0423fce24de35f8c26be7aecab2 100644 (file)
@@ -210,7 +210,6 @@ struct recv_buf {
        struct adapter *adapter;
        u8      *pbuf;
        u8      *pallocated_buf;
-       u8      *phead;
        u8      *pdata;
        u8      *ptail;
        u8      *pend;
index d3b5fd83f92638730f08a99f0965b20f018501d5..8832199b10eefd77cfb45464c1f8a2ad2203fe56 100644 (file)
@@ -27,7 +27,6 @@ int rtw_os_recvbuf_resource_alloc(struct adapter *padapter,
        precvbuf->pallocated_buf = NULL;
        precvbuf->pbuf = NULL;
        precvbuf->pdata = NULL;
-       precvbuf->phead = NULL;
        precvbuf->ptail = NULL;
        precvbuf->pend = NULL;
        return res;