sb/amd/sb{700,800}: Clean up index manipulations
commitc22ebc9339bf75ab55bbb885ede0c63314f46014
authorJacob Garber <jgarber1@ualberta.ca>
Tue, 25 Jun 2019 00:32:03 +0000 (24 18:32 -0600)
committerMartin Roth <martinroth@google.com>
Fri, 28 Jun 2019 19:36:11 +0000 (28 19:36 +0000)
tree7a5e37bce99ebc5140ed34dabdce85621ce6f903
parent464f4d6ee240e5afd44317d9b7bc4a1228c04899
sb/amd/sb{700,800}: Clean up index manipulations

It looks like in days gone by that these switches were once parts of
loops that incremented 'index' as they went along. However, we don't
have any loops anymore, so remove the needless increments and streamline
the rest of the assignments.

Change-Id: Iaabee984333c273af7810f9c11ed26bbb2a995d1
Signed-off-by: Jacob Garber <jgarber1@ualberta.ca>
Found-by: scan-build 8.0.0
Reviewed-on: https://review.coreboot.org/c/coreboot/+/33774
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
src/southbridge/amd/sb700/sb700.c
src/southbridge/amd/sb800/sb800.c