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 ab52c56232354724a020c2f4a915f09db204f565..0b786cfaa9abe34bd75a85ebb2304fc7771b6b01 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 f3f6b15b7251e7c8fd9c5ca2fd7788e5e0d776ba..c9182487c390172ba55717bfcb626ec5a0092e72 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;
 }