Commit 9f31b695 authored by Malcolm Priestley's avatar Malcolm Priestley Committed by Greg Kroah-Hartman

staging: vt6655: device_tx_srv rename pTD

Following the convention elsewhere for vnt_tx_desc rename
desc.
Signed-off-by: default avatarMalcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 12f2ee35
...@@ -831,23 +831,23 @@ static int vnt_int_report_rate(struct vnt_private *priv, ...@@ -831,23 +831,23 @@ static int vnt_int_report_rate(struct vnt_private *priv,
static int device_tx_srv(struct vnt_private *priv, unsigned int uIdx) static int device_tx_srv(struct vnt_private *priv, unsigned int uIdx)
{ {
struct vnt_tx_desc *pTD; struct vnt_tx_desc *desc;
int works = 0; int works = 0;
unsigned char byTsr0; unsigned char byTsr0;
unsigned char byTsr1; unsigned char byTsr1;
for (pTD = priv->apTailTD[uIdx]; priv->iTDUsed[uIdx] > 0; pTD = pTD->next) { for (desc = priv->apTailTD[uIdx]; priv->iTDUsed[uIdx] > 0; desc = desc->next) {
if (pTD->td0.owner == OWNED_BY_NIC) if (desc->td0.owner == OWNED_BY_NIC)
break; break;
if (works++ > 15) if (works++ > 15)
break; break;
byTsr0 = pTD->td0.tsr0; byTsr0 = desc->td0.tsr0;
byTsr1 = pTD->td0.tsr1; byTsr1 = desc->td0.tsr1;
/* Only the status of first TD in the chain is correct */ /* Only the status of first TD in the chain is correct */
if (pTD->td1.tcr & TCR_STP) { if (desc->td1.tcr & TCR_STP) {
if ((pTD->td_info->flags & TD_FLAGS_NETIF_SKB) != 0) { if ((desc->td_info->flags & TD_FLAGS_NETIF_SKB) != 0) {
if (!(byTsr1 & TSR1_TERR)) { if (!(byTsr1 & TSR1_TERR)) {
if (byTsr0 != 0) { if (byTsr0 != 0) {
pr_debug(" Tx[%d] OK but has error. tsr1[%02X] tsr0[%02X]\n", pr_debug(" Tx[%d] OK but has error. tsr1[%02X] tsr0[%02X]\n",
...@@ -861,20 +861,20 @@ static int device_tx_srv(struct vnt_private *priv, unsigned int uIdx) ...@@ -861,20 +861,20 @@ static int device_tx_srv(struct vnt_private *priv, unsigned int uIdx)
} }
if (byTsr1 & TSR1_TERR) { if (byTsr1 & TSR1_TERR) {
if ((pTD->td_info->flags & TD_FLAGS_PRIV_SKB) != 0) { if ((desc->td_info->flags & TD_FLAGS_PRIV_SKB) != 0) {
pr_debug(" Tx[%d] fail has error. tsr1[%02X] tsr0[%02X]\n", pr_debug(" Tx[%d] fail has error. tsr1[%02X] tsr0[%02X]\n",
(int)uIdx, byTsr1, byTsr0); (int)uIdx, byTsr1, byTsr0);
} }
} }
vnt_int_report_rate(priv, pTD->td_info, byTsr0, byTsr1); vnt_int_report_rate(priv, desc->td_info, byTsr0, byTsr1);
device_free_tx_buf(priv, pTD); device_free_tx_buf(priv, desc);
priv->iTDUsed[uIdx]--; priv->iTDUsed[uIdx]--;
} }
} }
priv->apTailTD[uIdx] = pTD; priv->apTailTD[uIdx] = desc;
return works; return works;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment