summaryrefslogtreecommitdiff
path: root/src/lib/reg_script.c
diff options
context:
space:
mode:
authorLee Leahy <leroy.p.leahy@intel.com>2017-03-10 15:31:56 -0800
committerMartin Roth <martinroth@google.com>2017-03-13 17:21:16 +0100
commit342f8d6e507b1a5c8dfd3f48936fed32ed0997e4 (patch)
tree55c65abbc6fade0e8b6b389bae4b639c5d360401 /src/lib/reg_script.c
parentbab6bc4d77fbc260e972420ba1e5bbe03e5087ea (diff)
downloadcoreboot-342f8d6e507b1a5c8dfd3f48936fed32ed0997e4.tar.xz
src/lib: Fix brace positions
Fix the following errors detected by checkpatch.pl: ERROR: open brace '{' following function declarations go on the next line ERROR: that open brace { should be on the previous line ERROR: open brace '{' following struct go on the same line ERROR: else should follow close brace '}' TEST=Build and run on Galileo Gen2 Change-Id: I971ada9ba9ba7ce5d8029323710fee1a6166570b Signed-off-by: Lee Leahy <Leroy.P.Leahy@intel.com> Reviewed-on: https://review.coreboot.org/18759 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'src/lib/reg_script.c')
-rw-r--r--src/lib/reg_script.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/lib/reg_script.c b/src/lib/reg_script.c
index a7bd7ccd5f..e3b453d2d0 100644
--- a/src/lib/reg_script.c
+++ b/src/lib/reg_script.c
@@ -192,8 +192,7 @@ static uint32_t reg_script_read_res(struct reg_script_context *ctx)
};
reg_script_set_step(ctx, &io_step);
val = reg_script_read_io(ctx);
- }
- else if (res->flags & IORESOURCE_MEM) {
+ } else if (res->flags & IORESOURCE_MEM) {
const struct reg_script mmio_step = {
.size = step->size,
.reg = res->base + step->reg,
@@ -223,8 +222,7 @@ static void reg_script_write_res(struct reg_script_context *ctx)
};
reg_script_set_step(ctx, &io_step);
reg_script_write_io(ctx);
- }
- else if (res->flags & IORESOURCE_MEM) {
+ } else if (res->flags & IORESOURCE_MEM) {
const struct reg_script mmio_step = {
.size = step->size,
.reg = res->base + step->reg,