staging: vt6655: remove unused tagDEVICE_RD_INFO -> curr_desc
authorMalcolm Priestley <tvboxspy@gmail.com>
Wed, 22 Jul 2015 18:16:40 +0000 (19:16 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 23 Jul 2015 03:51:38 +0000 (20:51 -0700)
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 26cd3e1af430c1b8ff228ac0a437b6edf5f1ea60..3302d01821a89a04a07362c0d197f934103bb4b1 100644 (file)
 typedef struct tagDEVICE_RD_INFO {
        struct sk_buff *skb;
        dma_addr_t  skb_dma;
-       dma_addr_t  curr_desc;
 } DEVICE_RD_INFO,   *PDEVICE_RD_INFO;
 
 #ifdef __BIG_ENDIAN
index 7409ed2f3a954bee98a469be0ca84768c9684cb6..c82bf48499f078f3e2ffab23d38e4419950613fa 100644 (file)
@@ -628,7 +628,6 @@ static void device_init_rd0_ring(struct vnt_private *pDevice)
                        dev_err(&pDevice->pcid->dev, "can not alloc rx bufs\n");
 
                pDesc->next = &(pDevice->aRD0Ring[(i+1) % pDevice->sOpts.nRxDescs0]);
-               pDesc->pRDInfo->curr_desc = cpu_to_le32(curr);
                pDesc->next_desc = cpu_to_le32(curr + sizeof(SRxDesc));
        }
 
@@ -652,7 +651,6 @@ static void device_init_rd1_ring(struct vnt_private *pDevice)
                        dev_err(&pDevice->pcid->dev, "can not alloc rx bufs\n");
 
                pDesc->next = &(pDevice->aRD1Ring[(i+1) % pDevice->sOpts.nRxDescs1]);
-               pDesc->pRDInfo->curr_desc = cpu_to_le32(curr);
                pDesc->next_desc = cpu_to_le32(curr + sizeof(SRxDesc));
        }