Browse Source

Staging: et131x: the stuck descriptor copy is never used

Say goodbye to it

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Alan Cox 15 years ago
parent
commit
63841ad247
1 changed files with 0 additions and 9 deletions
  1. 0 9
      drivers/staging/et131x/et131x_netdev.c

+ 0 - 9
drivers/staging/et131x/et131x_netdev.c

@@ -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);