]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
ixgbe: move increments after evaluations
authorGuinan Sun <guinanx.sun@intel.com>
Thu, 9 Jul 2020 08:00:35 +0000 (08:00 +0000)
committerKevin Bowling <kbowling@FreeBSD.org>
Tue, 7 Sep 2021 04:17:18 +0000 (21:17 -0700)
commitdc11ba4eb3fe5cce615f361de83e85e07005ca24
tree5893c95f3ae5c9b499eeb46e79fe2ed7e763102f
parent4cdc5e12a849871e4e8062a62a31f28545901d84
ixgbe: move increments after evaluations

The retry variable was being incremented before it was evaluated by the
subsequent conditional against the maximum retries to figure out which
message to print.  So we'll move the increment op to the end.

Signed-off-by: Jeb Cramer <jeb.j.cramer@intel.com>
Signed-off-by: Guinan Sun <guinanx.sun@intel.com>
Reviewed-by: Wei Zhao <wei.zhao1@intel.com>
Approved by: imp
Obtained from: DPDK (390445ec30b4c52a3d2887c3d2a202d9cf37ea8e)
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D31621
sys/dev/ixgbe/ixgbe_phy.c