staging: vt6655: struct tagDEVICE_TD_INFO resize dwReqCount.
dwReqCount is no bigger than u16 Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
9cc8eac99c
commit
531a9c524a
|
@ -245,7 +245,7 @@ typedef struct tagDEVICE_TD_INFO {
|
|||
struct sk_buff *skb;
|
||||
unsigned char *buf;
|
||||
dma_addr_t buf_dma;
|
||||
unsigned long dwReqCount;
|
||||
u16 dwReqCount;
|
||||
unsigned long dwHeaderLength;
|
||||
unsigned char byFlags;
|
||||
} DEVICE_TD_INFO, *PDEVICE_TD_INFO;
|
||||
|
|
|
@ -1193,7 +1193,7 @@ static int vnt_tx_packet(struct vnt_private *priv, struct sk_buff *skb)
|
|||
|
||||
/* Set TSR1 & ReqCount in TxDescHead */
|
||||
head_td->td1.tcr |= (TCR_STP | TCR_EDP | EDMSDU);
|
||||
head_td->td1.req_count = cpu_to_le16((u16)head_td->pTDInfo->dwReqCount);
|
||||
head_td->td1.req_count = cpu_to_le16(head_td->pTDInfo->dwReqCount);
|
||||
|
||||
head_td->buff_addr = cpu_to_le32(head_td->pTDInfo->buf_dma);
|
||||
|
||||
|
|
|
@ -1200,7 +1200,7 @@ s_cbFillTxBufHead(struct vnt_private *pDevice, unsigned char byPktType,
|
|||
|
||||
ptdCurr = (PSTxDesc)pHeadTD;
|
||||
|
||||
ptdCurr->pTDInfo->dwReqCount = cbReqCount;
|
||||
ptdCurr->pTDInfo->dwReqCount = (u16)cbReqCount;
|
||||
ptdCurr->pTDInfo->dwHeaderLength = cbHeaderLength;
|
||||
|
||||
return cbHeaderLength;
|
||||
|
|
Loading…
Reference in a new issue