From: Lennart Poettering Date: Fri, 28 Jun 2024 17:47:46 +0000 (+0200) Subject: boot: indent error code path, but leave main code path unindented X-Git-Tag: v257-rc1~967^2~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b8ed6e22f01084530da8918a7da50c7327fa1987;p=thirdparty%2Fsystemd.git boot: indent error code path, but leave main code path unindented --- diff --git a/src/boot/efi/boot.c b/src/boot/efi/boot.c index b3d9329926a..aca34a5145f 100644 --- a/src/boot/efi/boot.c +++ b/src/boot/efi/boot.c @@ -1664,9 +1664,16 @@ static void config_load_type1_entries( if (startswith(f->FileName, u"auto-")) continue; - err = file_read(entries_dir, f->FileName, 0, 0, &content, NULL); - if (err == EFI_SUCCESS) - boot_entry_add_type1(config, device, root_dir, u"\\loader\\entries", f->FileName, content, loaded_image_path); + err = file_read(entries_dir, + f->FileName, + /* offset= */ 0, + /* size= */ 0, + &content, + /* ret_size= */ NULL); + if (err != EFI_SUCCESS) + continue; + + boot_entry_add_type1(config, device, root_dir, u"\\loader\\entries", f->FileName, content, loaded_image_path); } }