From: Lennart Poettering Date: Wed, 29 Apr 2026 13:52:29 +0000 (+0200) Subject: sd-boot: minor tweaks as follow-up for #41863 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=32a291abe9d22efcbb7f613b41d90c68d7c315b2;p=thirdparty%2Fsystemd.git sd-boot: minor tweaks as follow-up for #41863 This addresses some trivial points made by @keszybz in the PR review. --- diff --git a/src/boot/boot.c b/src/boot/boot.c index fff35de864b..a2a1becc9aa 100644 --- a/src/boot/boot.c +++ b/src/boot/boot.c @@ -2764,12 +2764,11 @@ static EFI_STATUS load_extras( } const struct ExtraResourceInfo *x = NULL; - FOREACH_ELEMENT(j, table) { + FOREACH_ELEMENT(j, table) if (endswith_no_case(info->FileName, j->suffix)) { x = j; break; } - } if (!x) { log_warning("Unrecognized type of extra file '%ls', ignoring.", info->FileName); continue; @@ -3034,7 +3033,7 @@ static EFI_STATUS call_image_start( case LOADER_UKI: case LOADER_UKI_URL: /* For modern UKIs we'll not bother with 'initrd', but we'll instead support 'extra' - * for loading credentials, sysext and confext. */ + * for loading credentials, sysexts, and confexts. */ err = load_extras(image_root, entry, &initrd_pages, &initrd_size); if (err != EFI_SUCCESS)