diff options
author | Stefan Reinauer <stefan.reinauer@coreboot.org> | 2016-05-04 17:52:56 -0700 |
---|---|---|
committer | Stefan Reinauer <stefan.reinauer@coreboot.org> | 2016-05-05 19:41:29 +0200 |
commit | f7dd6d5da13131d5161185c60e757ae4c4406f46 (patch) | |
tree | 72fc9d7eca69432193aaf061c09e8e9de86ddf6e | |
parent | 4c3f5dc03ce5fa19cd087a62430239df6d86e54d (diff) | |
download | coreboot-f7dd6d5da13131d5161185c60e757ae4c4406f46.tar.xz |
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>
-rw-r--r-- | src/lib/reg_script.c | 3 |
1 files changed, 2 insertions, 1 deletions
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", |