From: Hong Zhiguo Date: Tue, 22 Oct 2013 18:32:56 +0000 (+0000) Subject: e1000: fix wrong queue idx calculation X-Git-Tag: v3.13-rc1~105^2~89^2~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=49a45a0686cc2b43bcb3834a68416a201475dc77;p=profile%2Fivi%2Fkernel-x86-ivi.git e1000: fix wrong queue idx calculation tx_ring and adapter->tx_ring are already of type "struct e1000_tx_ring *" Signed-off-by: Hong Zhiguo Tested-by: Aaron Brown Signed-off-by: Jeff Kirsher --- diff --git a/drivers/net/ethernet/intel/e1000/e1000_main.c b/drivers/net/ethernet/intel/e1000/e1000_main.c index 59ad007..ad6800a 100644 --- a/drivers/net/ethernet/intel/e1000/e1000_main.c +++ b/drivers/net/ethernet/intel/e1000/e1000_main.c @@ -3917,8 +3917,7 @@ static bool e1000_clean_tx_irq(struct e1000_adapter *adapter, " next_to_watch <%x>\n" " jiffies <%lx>\n" " next_to_watch.status <%x>\n", - (unsigned long)((tx_ring - adapter->tx_ring) / - sizeof(struct e1000_tx_ring)), + (unsigned long)(tx_ring - adapter->tx_ring), readl(hw->hw_addr + tx_ring->tdh), readl(hw->hw_addr + tx_ring->tdt), tx_ring->next_to_use,