]> git.baikalelectronics.ru Git - kernel.git/commit
net: enetc: remove local "priv" variable in enetc_clean_tx_ring()
authorVladimir Oltean <vladimir.oltean@nxp.com>
Wed, 20 Oct 2021 17:42:19 +0000 (20:42 +0300)
committerJakub Kicinski <kuba@kernel.org>
Thu, 21 Oct 2021 22:35:50 +0000 (15:35 -0700)
commit8fea80e05ad9ef7458dfc811185ac400ac33cfe4
tree167d847585947d21bd97fee6dad3f0e604749457
parente0c1d0efa7aeca95b3bccb4c520614a06d7e27ba
net: enetc: remove local "priv" variable in enetc_clean_tx_ring()

The "priv" variable is needed in the "check_writeback" scope since
commit fd2266773540 ("enetc: add hardware timestamping support").

Since commit c063a2f3e240 ("enetc: support PTP Sync packet one-step
timestamping"), we also need "priv" in the larger function scope.

So the local variable from the "if" block scope is not needed, and
actually shadows the other one. Delete it.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Claudiu Manoil <claudiu.manoil@nxp.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/freescale/enetc/enetc.c