intel/fsp_bd82x6x: Fix cycle error

Some copy-pasta snuck in that reintroduced an error
already fixed in #3435 (62f8083dfd)

Change-Id: I47db23e88fa09c73b4cf3e99fe2d0ed2ac30fd80
Found-by: Coverity Scan
Signed-off-by: Patrick Georgi <patrick@georgi-clan.de>
Reviewed-on: http://review.coreboot.org/6479
Tested-by: build bot (Jenkins)
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
Reviewed-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
This commit is contained in:
Patrick Georgi 2014-08-03 12:41:29 +02:00
parent 38fa6edf2d
commit 63e1948643
2 changed files with 2 additions and 2 deletions

View File

@ -172,7 +172,7 @@ static void dump_alt_gp_smi_status(u16 alt_gp_smi_sts)
{ {
int i; int i;
printk(BIOS_DEBUG, "ALT_GP_SMI_STS: "); printk(BIOS_DEBUG, "ALT_GP_SMI_STS: ");
for (i=15; i<= 0; i--) { for (i=15; i>= 0; i--) {
if (alt_gp_smi_sts & (1 << i)) printk(BIOS_DEBUG, "GPI%d ", (i-16)); if (alt_gp_smi_sts & (1 << i)) printk(BIOS_DEBUG, "GPI%d ", (i-16));
} }
printk(BIOS_DEBUG, "\n"); printk(BIOS_DEBUG, "\n");

View File

@ -165,7 +165,7 @@ static void dump_gpe0_status(u32 gpe0_sts)
{ {
int i; int i;
printk(BIOS_DEBUG, "GPE0_STS: "); printk(BIOS_DEBUG, "GPE0_STS: ");
for (i=31; i<= 16; i--) { for (i=31; i >= 16; i--) {
if (gpe0_sts & (1 << i)) printk(BIOS_DEBUG, "GPIO%d ", (i-16)); if (gpe0_sts & (1 << i)) printk(BIOS_DEBUG, "GPIO%d ", (i-16));
} }
if (gpe0_sts & (1 << 14)) printk(BIOS_DEBUG, "USB4 "); if (gpe0_sts & (1 << 14)) printk(BIOS_DEBUG, "USB4 ");