Staging: et131x: the stuck descriptor copy is never used
authorAlan Cox <alan@linux.intel.com>
Tue, 6 Oct 2009 14:48:42 +0000 (15:48 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 11 Dec 2009 20:23:06 +0000 (12:23 -0800)
Say goodbye to it

Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/et131x/et131x_netdev.c

index 93dbed47c2e8e7552d5ae0eadeb6a7fa3ea14614..7c55f5d52d5c8dbfee67ac9307120e70f9a617ac 100644 (file)
@@ -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);