From 72c60a472b393363722e0c6093f696ee28a7f56a Mon Sep 17 00:00:00 2001 From: Lee Leahy Date: Fri, 10 Mar 2017 10:53:36 -0800 Subject: commonlib: Fix issues with { } and else Fix the following errors and warning detected by checkpatch.pl: ERROR: open brace '{' following struct go on the same line ERROR: else should follow close brace '}' WARNING: else is not generally useful after a break or return False positives are detected for the following checkpatch.pl error. ERROR: that open brace { should be on the previous line These false positives are in cbfs.c for two function definitions. TEST=Build and run Galileo Gen2 Change-Id: Ic679ff3a2e1cfc0ed52073c20165e05bf21d76f3 Signed-off-by: Lee Leahy Reviewed-on: https://review.coreboot.org/18750 Reviewed-by: Aaron Durbin Tested-by: build bot (Jenkins) --- src/commonlib/fsp_relocate.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/commonlib/fsp_relocate.c') diff --git a/src/commonlib/fsp_relocate.c b/src/commonlib/fsp_relocate.c index 57c0ac99eb..fd5a348c16 100644 --- a/src/commonlib/fsp_relocate.c +++ b/src/commonlib/fsp_relocate.c @@ -266,8 +266,7 @@ static size_t ffs_file_size(const EFI_FFS_FILE_HEADER *ffsfh) */ uint32_t file2_size = FFS_FILE2_SIZE(ffsfh); size = read_le32(&file2_size); - } - else { + } else { size = read_le8(&ffsfh->Size[0]) << 0; size |= read_le8(&ffsfh->Size[1]) << 8; size |= read_le8(&ffsfh->Size[2]) << 16; -- cgit v1.2.3