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>
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user