aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/ice/ice_sched.c
diff options
context:
space:
mode:
authorVladimir Oltean <[email protected]>2021-10-20 17:42:20 +0000
committerJakub Kicinski <[email protected]>2021-10-21 22:35:55 +0000
commit520661495409666771d6e4be683ce5e4854c60f5 (patch)
treeea4a4640f3a375748fcce9821ba4b06fd7e236d5 /drivers/net/ethernet/intel/ice/ice_sched.c
parentnet: enetc: remove local "priv" variable in enetc_clean_tx_ring() (diff)
downloadkernel-520661495409666771d6e4be683ce5e4854c60f5.tar.gz
kernel-520661495409666771d6e4be683ce5e4854c60f5.zip
net: enetc: use the skb variable directly in enetc_clean_tx_ring()
The code checks whether the skb had one-step TX timestamping enabled, in order to schedule the work item for emptying the priv->tx_skbs queue. That code checks for "tx_swbd->skb" directly, when we already had a skb retrieved using enetc_tx_swbd_get_skb(tx_swbd) - a TX software BD can also hold an XDP_TX packet or an XDP frame. But since the direct tx_swbd dereference is in an "if" block guarded by the non-NULL quality of "skb", accessing "tx_swbd->skb" directly is not wrong, just confusing. Just use the local variable named "skb". Signed-off-by: Vladimir Oltean <[email protected]> Reviewed-by: Claudiu Manoil <[email protected]> Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_sched.c')
0 files changed, 0 insertions, 0 deletions