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

Commit 5481c8cd authored by Takahiro Shimizu's avatar Takahiro Shimizu Committed by David S. Miller
Browse files

pch_gbe: simplify transmit time stamping flag test



This patch makes logic surrounding the test of the
transmit time stamping flag more readable.

[ RC - Rebased Takahiro's changes and wrote a commit message
  explaining the changes. ]

Signed-off-by: default avatarTakahiro Shimizu <tshimizu818@gmail.com>
Signed-off-by: default avatarRichard Cochran <richardcochran@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent d50566c7
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -199,11 +199,11 @@ static void pch_tx_timestamp(
	u32 cnt, val;

	shtx = skb_shinfo(skb);
	if (unlikely(shtx->tx_flags & SKBTX_HW_TSTAMP && adapter->hwts_tx_en))
		shtx->tx_flags |= SKBTX_IN_PROGRESS;
	else
	if (likely(!(shtx->tx_flags & SKBTX_HW_TSTAMP && adapter->hwts_tx_en)))
		return;

	shtx->tx_flags |= SKBTX_IN_PROGRESS;

	/* Get ieee1588's dev information */
	pdev = adapter->ptp_pdev;