Skip to content

Commit d2a586f

Browse files
Julien ThierryArd Biesheuvel
authored andcommitted
efi/fdt: Indentation fix
Closing bracket seems to end a for statement when it is actually ending the contained if. Add some brackets to have clear delimitation of each scope. No functional change/fix, just fix the indentation. Signed-off-by: Julien Thierry <julien.thierry@arm.com> Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
1 parent 27b6567 commit d2a586f

File tree

1 file changed

+3
-2
lines changed
  • drivers/firmware/efi/libstub

1 file changed

+3
-2
lines changed

drivers/firmware/efi/libstub/fdt.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ void *get_fdt(efi_system_table_t *sys_table, unsigned long *fdt_size)
376376
tables = (efi_config_table_t *) sys_table->tables;
377377
fdt = NULL;
378378

379-
for (i = 0; i < sys_table->nr_tables; i++)
379+
for (i = 0; i < sys_table->nr_tables; i++) {
380380
if (efi_guidcmp(tables[i].guid, fdt_guid) == 0) {
381381
fdt = (void *) tables[i].table;
382382
if (fdt_check_header(fdt) != 0) {
@@ -385,7 +385,8 @@ void *get_fdt(efi_system_table_t *sys_table, unsigned long *fdt_size)
385385
}
386386
*fdt_size = fdt_totalsize(fdt);
387387
break;
388-
}
388+
}
389+
}
389390

390391
return fdt;
391392
}

0 commit comments

Comments
 (0)