net/ixgbe/base: move increments after evaluations
authorGuinan Sun <guinanx.sun@intel.com>
Thu, 9 Jul 2020 08:00:35 +0000 (08:00 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Sat, 11 Jul 2020 04:18:53 +0000 (06:18 +0200)
commit390445ec30b4c52a3d2887c3d2a202d9cf37ea8e
treeee9b10ecea52e70255dbdde8f65077a8513b3162
parent40023f73c76579e58a859dab87b4c30278eb2e48
net/ixgbe/base: 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>
drivers/net/ixgbe/base/ixgbe_phy.c