staging: vt6655: Remove unused tagDEVICE_TD_INFO curr_desc
authorMalcolm Priestley <tvboxspy@gmail.com>
Wed, 22 Jul 2015 18:16:37 +0000 (19:16 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 23 Jul 2015 03:51:38 +0000 (20:51 -0700)
The variable is assigned a value that is never used.

Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6655/desc.h
drivers/staging/vt6655/device_main.c

index d56810133da42a3a9323975a055848f6f1bb9af5..485c6fd05713dffd02698e43142e9563017232f9 100644 (file)
@@ -257,7 +257,6 @@ typedef struct tagDEVICE_TD_INFO {
        struct sk_buff *skb;
        unsigned char *buf;
        dma_addr_t          buf_dma;
-       dma_addr_t          curr_desc;
        unsigned long dwReqCount;
        unsigned long dwHeaderLength;
        unsigned char byFlags;
index 89611a70d785e61c14f11ea63c834871f3771a83..7409ed2f3a954bee98a469be0ca84768c9684cb6 100644 (file)
@@ -711,7 +711,6 @@ static void device_init_td0_ring(struct vnt_private *pDevice)
                        pDesc->pTDInfo->buf_dma = pDevice->tx_bufs_dma0 + (i)*PKT_BUF_SZ;
                }
                pDesc->next = &(pDevice->apTD0Rings[(i+1) % pDevice->sOpts.nTxDescs[0]]);
-               pDesc->pTDInfo->curr_desc = cpu_to_le32(curr);
                pDesc->next_desc = cpu_to_le32(curr+sizeof(STxDesc));
        }
 
@@ -737,7 +736,6 @@ static void device_init_td1_ring(struct vnt_private *pDevice)
                        pDesc->pTDInfo->buf_dma = pDevice->tx_bufs_dma1 + (i) * PKT_BUF_SZ;
                }
                pDesc->next = &(pDevice->apTD1Rings[(i + 1) % pDevice->sOpts.nTxDescs[1]]);
-               pDesc->pTDInfo->curr_desc = cpu_to_le32(curr);
                pDesc->next_desc = cpu_to_le32(curr+sizeof(STxDesc));
        }