From b45bbb253f106825876df77630ef7204fd25761d Mon Sep 17 00:00:00 2001 From: Paul Menzel Date: Fri, 24 Mar 2017 16:17:16 +0100 Subject: nb/intel/i945: Fix SPD dumps Currently the `break` further down is called unconditionally as the brackets for the body of the if statement are missing. Add those. Change-Id: I34917a9877dcc882d880dedea689e1d72fe52888 Found-by: Coverity (CID 1372941: Control flow issues (UNREACHABLE)) Signed-off-by: Paul Menzel Reviewed-on: https://review.coreboot.org/18971 Tested-by: build bot (Jenkins) Reviewed-by: Arthur Heymans Reviewed-by: Patrick Georgi --- src/northbridge/intel/i945/debug.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/northbridge/intel/i945/debug.c b/src/northbridge/intel/i945/debug.c index acf73c4c2d..0f388df4fb 100644 --- a/src/northbridge/intel/i945/debug.c +++ b/src/northbridge/intel/i945/debug.c @@ -87,9 +87,10 @@ void dump_spd_registers(void) if ((i % 16) == 0) printk(BIOS_DEBUG, "\n%02x: ", i); status = smbus_read_byte(device, i); - if (status < 0) + if (status < 0) { printk(BIOS_DEBUG, "bad device: %02x\n", -status); break; + } printk(BIOS_DEBUG, "%02x ", status); } device++; -- cgit v1.2.3