Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 49a45a06 authored by Hong Zhiguo's avatar Hong Zhiguo Committed by Jeff Kirsher
Browse files

e1000: fix wrong queue idx calculation



tx_ring and adapter->tx_ring are already of type "struct
e1000_tx_ring *"

Signed-off-by: default avatarHong Zhiguo <zhiguohong@tencent.com>
Tested-by: default avatarAaron Brown <aaron.f.brown@intel.com>
Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
parent ba486502
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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,