lib/reg_script: Fix braces

In If0d4d61ed8ef48ec20082b327f358fd1987e3fb9 the code
was changed from one to two lines in the body of an if()
statement, without adding braces.

Change-Id: Ibbbdf240157adae95151fb2ce0135948caa60108
Signed-off-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Reviewed-on: https://review.coreboot.org/14621
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Tested-by: build bot (Jenkins)
Reviewed-by: Leroy P Leahy <leroy.p.leahy@intel.com>
This commit is contained in:
Stefan Reinauer 2016-05-04 17:52:56 -07:00
parent 4c3f5dc03c
commit f7dd6d5da1
1 changed files with 2 additions and 1 deletions

View File

@ -478,10 +478,11 @@ static uint64_t reg_script_read(struct reg_script_context *ctx)
/* Read from the platform specific bus */ /* Read from the platform specific bus */
bus = find_bus(step); bus = find_bus(step);
if (NULL != bus) if (NULL != bus) {
value = bus->reg_script_read(ctx); value = bus->reg_script_read(ctx);
break; break;
} }
}
printk(BIOS_ERR, printk(BIOS_ERR,
"Unsupported read type (0x%x) for this device!\n", "Unsupported read type (0x%x) for this device!\n",
step->type); step->type);