Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 187e2a81 authored by Malcolm Priestley's avatar Malcolm Priestley Committed by Greg Kroah-Hartman
Browse files

staging: vt6655: move setting of PSTxDesc->buff_addr to vnt_tx_packet



Keep setting of this part of the structure with the others.

Only pTDInfo needs carried in the buffer structure.

Signed-off-by: default avatarMalcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent e6aa864f
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1217,6 +1217,8 @@ static int vnt_tx_packet(struct vnt_private *priv, struct sk_buff *skb)
	head_td->m_td1TD1.wReqCount =
			cpu_to_le16((u16)head_td->pTDInfo->dwReqCount);

	head_td->buff_addr = cpu_to_le32(head_td->pTDInfo->skb_dma);

	head_td->pTDInfo->byFlags = TD_FLAGS_NETIF_SKB;

	if (dma_idx == TYPE_AC0DMA)
+0 −1
Original line number Diff line number Diff line
@@ -1207,7 +1207,6 @@ s_cbFillTxBufHead(struct vnt_private *pDevice, unsigned char byPktType,
	ptdCurr->pTDInfo->dwReqCount = cbReqCount;
	ptdCurr->pTDInfo->dwHeaderLength = cbHeaderLength;
	ptdCurr->pTDInfo->skb_dma = ptdCurr->pTDInfo->buf_dma;
	ptdCurr->buff_addr = cpu_to_le32(ptdCurr->pTDInfo->skb_dma);

	return cbHeaderLength;
}