[PATCH 103/235] Staging: et131x: the stuck descriptor copy is never used

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Alan Cox <alan@xxxxxxxxxxxxxxx>

Say goodbye to it

Signed-off-by: Alan Cox <alan@xxxxxxxxxxxxxxx>
Signed-off-by: Greg Kroah-Hartman <gregkh@xxxxxxx>
---
 drivers/staging/et131x/et131x_netdev.c |    9 ---------
 1 files changed, 0 insertions(+), 9 deletions(-)

diff --git a/drivers/staging/et131x/et131x_netdev.c b/drivers/staging/et131x/et131x_netdev.c
index 93dbed4..7c55f5d 100644
--- a/drivers/staging/et131x/et131x_netdev.c
+++ b/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);
 
-- 
1.6.5.5

_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/devel

[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux