x86/boot: Add braces in reloc.c
PATCH 1/1 x86/boot: Add braces in reloc.c
107 lines is an unreasonably large switch statement to live inside a brace-less for loop. Drop the comment that's clumsily trying to cover the fact that this logic has wrong-looking indentation.
No functional change.
Signed-off-by Andrew Cooper <[email protected]>
---
CC: Jan Beulich <[email protected]>
CC: Roger Pau Monné <[email protected]>
CC: Wei Liu <[email protected]>
--- xen/arch/x86/boot/reloc.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
xen/arch/x86/boot/reloc.c +3 -1
@@ -230,6 +230,7 @@ static multiboot_info_t *mbi2_reloc(uint32_t mbi_in, uint32_t video_out)/* Put all needed data into mbi_out. */ for ( tag =_p (ptr); (u32 )tag - mbi_in < mbi_fix->total_size; tag =_p (ALIGN_UP ((u32 )tag + tag->size,MULTIBOOT2_TAG_ALIGN )) ) + {switch ( tag->type ) {case MULTIBOOT2_TAG_TYPE_BOOT_LOADER_NAME :
@@ -332,11 +333,12 @@ static multiboot_info_t *mbi2_reloc(uint32_t mbi_in, uint32_t video_out)#endif /* CONFIG_VIDEO */ case MULTIBOOT2_TAG_TYPE_END : - goto end;/* Cannot "break;" here. */ + goto end;default :break ; } + } end:
base-commit: 4a7e71aa085170f1a13976507c8e248f8715f116
Signature · 1 line
2.30.2
Quoted 7 lines · Andrew Cooper
107 lines is an unreasonably large switch statement to live inside a brace-less for loop. Drop the comment that's clumsily trying to cover the fact that this logic has wrong-looking indentation.
No functional change.
Signed-off-by Andrew Cooper <[email protected]>
Acked-by Jan Beulich <[email protected]>