Skip to content

Commit 201b54b

Browse files
kuba-mooJeff Kirsher
authored andcommitted
e1000e: remove redundant if clause from PTP work
tx_hwtstamp_skb is always set before work is scheduled, work is cancelled before tx_hwtstamp_skb is set to NULL. PTP work cannot ever see tx_hwtstamp_skb set to NULL. Signed-off-by: Jakub Kicinski <[email protected]> Tested-by: Aaron Brown <[email protected]> Signed-off-by: Jeff Kirsher <[email protected]>
1 parent 59c871c commit 201b54b

File tree

1 file changed

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

1 file changed

+0
-3
lines changed

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1148,9 +1148,6 @@ static void e1000e_tx_hwtstamp_work(struct work_struct *work)
11481148
tx_hwtstamp_work);
11491149
struct e1000_hw *hw = &adapter->hw;
11501150

1151-
if (!adapter->tx_hwtstamp_skb)
1152-
return;
1153-
11541151
if (er32(TSYNCTXCTL) & E1000_TSYNCTXCTL_VALID) {
11551152
struct skb_shared_hwtstamps shhwtstamps;
11561153
u64 txstmp;

0 commit comments

Comments
 (0)