Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 175143
b: refs/heads/master
c: 9251d71
h: refs/heads/master
i:
  175141: 81dfe16
  175139: 159fc4a
  175135: 093774e
v: v3
  • Loading branch information
Alan Cox authored and Greg Kroah-Hartman committed Dec 11, 2009
1 parent 0237cb1 commit 861db03
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 12 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c1996fc2ee1df6ecefe9f950f196cfc9b1d403e4
refs/heads/master: 9251d71a4ec3e20189bb182cdc3af00f1152da81
18 changes: 7 additions & 11 deletions trunk/drivers/staging/et131x/et1310_tx.c
Original file line number Diff line number Diff line change
Expand Up @@ -282,23 +282,19 @@ void et131x_init_send(struct et131x_adapter *adapter)

tx_ring->TCBReadyQueueHead = tcb;

/* Go through and set up each TCB */
for (ct = 0; ct < NUM_TCB; ct++) {
memset(tcb, 0, sizeof(struct tcb));
memset(tcb, 0, sizeof(struct tcb) * NUM_TCB);

/* Go through and set up each TCB */
for (ct = 0; ct++ < NUM_TCB; tcb++) {
/* Set the link pointer in HW TCB to the next TCB in the
* chain. If this is the last TCB in the chain, also set the
* tail pointer.
*/
if (ct < NUM_TCB - 1)
tcb->Next = tcb + 1;
else {
tx_ring->TCBReadyQueueTail = tcb;
tcb->Next = NULL;
}
tcb->Next = tcb + 1;

tcb++;
}
tcb--;
tx_ring->TCBReadyQueueTail = tcb;
tcb->Next = NULL;
/* Curr send queue should now be empty */
tx_ring->CurrSendHead = NULL;
tx_ring->CurrSendTail = NULL;
Expand Down

0 comments on commit 861db03

Please sign in to comment.