Skip to content

Commit 4d432f6

Browse files
gobenjiJeff Kirsher
authored andcommitted
e1000e: Remove unreachable code
msi-x interrupts are not shared so there's no need to check if the interrupt was really from this adapter. Signed-off-by: Benjamin Poirier <[email protected]> Tested-by: Aaron Brown <[email protected]> Signed-off-by: Jeff Kirsher <[email protected]>
1 parent d602de0 commit 4d432f6

File tree

1 file changed

+0
-6
lines changed
  • drivers/net/ethernet/intel/e1000e

1 file changed

+0
-6
lines changed

drivers/net/ethernet/intel/e1000e/netdev.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1907,12 +1907,6 @@ static irqreturn_t e1000_msix_other(int __always_unused irq, void *data)
19071907
struct e1000_hw *hw = &adapter->hw;
19081908
u32 icr = er32(ICR);
19091909

1910-
if (!(icr & E1000_ICR_INT_ASSERTED)) {
1911-
if (!test_bit(__E1000_DOWN, &adapter->state))
1912-
ew32(IMS, E1000_IMS_OTHER);
1913-
return IRQ_NONE;
1914-
}
1915-
19161910
if (icr & adapter->eiac_mask)
19171911
ew32(ICS, (icr & adapter->eiac_mask));
19181912

0 commit comments

Comments
 (0)