From: Alan Cox Date: Tue, 6 Oct 2009 14:48:42 +0000 (+0100) Subject: Staging: et131x: the stuck descriptor copy is never used X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=63841ad24775f1ac83c134b1e44d51fe19afbbb6;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git Staging: et131x: the stuck descriptor copy is never used Say goodbye to it Signed-off-by: Alan Cox Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/et131x/et131x_netdev.c b/drivers/staging/et131x/et131x_netdev.c index 93dbed47c2e8..7c55f5d52d5c 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);