Skip to content

Commit

Permalink
Staging: et131x: the stuck descriptor copy is never used
Browse files Browse the repository at this point in the history
Say goodbye to it

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
  • Loading branch information
Alan Cox authored and Greg Kroah-Hartman committed Dec 11, 2009
1 parent b711b2e commit 63841ad
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions drivers/staging/et131x/et131x_netdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -547,15 +547,6 @@ void et131x_tx_timeout(struct net_device *netdev)
tcb->Count++;

if (tcb->Count > NIC_SEND_HANG_THRESHOLD) {
struct tx_desc stuck[10];

if (INDEX10(tcb->WrIndex) > 7) {
memcpy(stuck,
etdev->tx_ring.tx_desc_ring +
INDEX10(tcb->WrIndex) - 6,
sizeof(struct tx_desc) * 10);
}

spin_unlock_irqrestore(&etdev->TCBSendQLock,
flags);

Expand Down

0 comments on commit 63841ad

Please sign in to comment.