From f7dd6d5da13131d5161185c60e757ae4c4406f46 Mon Sep 17 00:00:00 2001 From: Stefan Reinauer Date: Wed, 4 May 2016 17:52:56 -0700 Subject: 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 Reviewed-on: https://review.coreboot.org/14621 Reviewed-by: Aaron Durbin Tested-by: build bot (Jenkins) Reviewed-by: Leroy P Leahy --- src/lib/reg_script.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/lib/reg_script.c') diff --git a/src/lib/reg_script.c b/src/lib/reg_script.c index ace9325f13..16efa36c5d 100644 --- a/src/lib/reg_script.c +++ b/src/lib/reg_script.c @@ -478,9 +478,10 @@ static uint64_t reg_script_read(struct reg_script_context *ctx) /* Read from the platform specific bus */ bus = find_bus(step); - if (NULL != bus) + if (NULL != bus) { value = bus->reg_script_read(ctx); break; + } } printk(BIOS_ERR, "Unsupported read type (0x%x) for this device!\n", -- cgit v1.2.3