staging: vt6655: struct tagDEVICE_TD_INFO remove dwHeaderLength
authorMalcolm Priestley <tvboxspy@gmail.com>
Fri, 14 Aug 2015 21:58:49 +0000 (22:58 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 15 Aug 2015 02:31:10 +0000 (19:31 -0700)
dwHeaderLength is assigned a value but that is never used.

Remove variable.

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/rxtx.c

index ab52c56..0b786cf 100644 (file)
@@ -246,7 +246,6 @@ typedef struct tagDEVICE_TD_INFO {
        unsigned char *buf;
        dma_addr_t          buf_dma;
        u16 dwReqCount;
-       unsigned long dwHeaderLength;
        unsigned char byFlags;
 } DEVICE_TD_INFO,    *PDEVICE_TD_INFO;
 
index f3f6b15..c918248 100644 (file)
@@ -1201,7 +1201,6 @@ s_cbFillTxBufHead(struct vnt_private *pDevice, unsigned char byPktType,
        ptdCurr = (PSTxDesc)pHeadTD;
 
        ptdCurr->pTDInfo->dwReqCount = (u16)cbReqCount;
-       ptdCurr->pTDInfo->dwHeaderLength = cbHeaderLength;
 
        return cbHeaderLength;
 }