staging: r8188eu: remove unused dma_transfer_addr
authorMartin Kaiser <martin@kaiser.cx>
Fri, 30 Dec 2022 18:06:39 +0000 (19:06 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 17 Jan 2023 18:31:22 +0000 (19:31 +0100)
The dma_transfer_addr component in struct xmit_buf is initialised but not
used. Remove it.

Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Tested-by: Philipp Hortmann <philipp.g.hortmann@gmail.com> # Edimax N150
Link: https://lore.kernel.org/r/20221230180646.91008-14-martin@kaiser.cx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/core/rtw_xmit.c
drivers/staging/r8188eu/include/rtw_xmit.h

index 66715611a3e3ec872b9a9e13f6511a5620270233..3e86db6db8248eb2abee9085a00479ef8588ce0e 100644 (file)
@@ -41,7 +41,6 @@ static int rtw_xmit_resource_alloc(struct adapter *padapter, struct xmit_buf *px
                return -ENOMEM;
 
        pxmitbuf->pbuf = (u8 *)ALIGN((size_t)(pxmitbuf->pallocated_buf), XMITBUF_ALIGN_SZ);
-       pxmitbuf->dma_transfer_addr = 0;
 
        pxmitbuf->pxmit_urb = usb_alloc_urb(0, GFP_KERNEL);
        if (!pxmitbuf->pxmit_urb) {
index b017f9293f86795fdad0bd5e3526d38115b125a5..1c4fbdf97a123e9159ceaaba8f84ed5cba4476f6 100644 (file)
@@ -202,7 +202,6 @@ struct xmit_buf {
        struct submit_ctx *sctx;
        u32     ff_hwaddr;
        struct urb *pxmit_urb;
-       dma_addr_t dma_transfer_addr;   /* (in) dma addr for transfer_buffer */
        int last[8];
 };