From: Lennart Poettering Date: Wed, 26 Jun 2024 10:23:57 +0000 (+0200) Subject: stub: reorder variables X-Git-Tag: v257-rc1~1041^2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c8af9aca9e506aac78ab3130dc79d500da860723;p=thirdparty%2Fsystemd.git stub: reorder variables --- diff --git a/src/boot/efi/stub.c b/src/boot/efi/stub.c index 08dc705dcf5..2317b505d99 100644 --- a/src/boot/efi/stub.c +++ b/src/boot/efi/stub.c @@ -888,15 +888,15 @@ static void determine_cmdline( } static EFI_STATUS run(EFI_HANDLE image) { - _cleanup_(initrds_free) struct iovec initrds[_INITRD_MAX] = {}; - DevicetreeAddon *dt_addons = NULL; - size_t n_dt_addons = 0; + int sections_measured = -1, parameters_measured = -1, sysext_measured = -1, confext_measured = -1; _cleanup_(devicetree_cleanup) struct devicetree_state dt_state = {}; - EFI_LOADED_IMAGE_PROTOCOL *loaded_image; - PeSectionVector sections[ELEMENTSOF(unified_sections)] = {}; _cleanup_free_ char16_t *cmdline = NULL, *cmdline_addons = NULL; - int sections_measured = -1, parameters_measured = -1, sysext_measured = -1, confext_measured = -1; + _cleanup_(initrds_free) struct iovec initrds[_INITRD_MAX] = {}; + PeSectionVector sections[ELEMENTSOF(unified_sections)] = {}; + EFI_LOADED_IMAGE_PROTOCOL *loaded_image; _cleanup_free_ char *uname = NULL; + DevicetreeAddon *dt_addons = NULL; + size_t n_dt_addons = 0; EFI_STATUS err; err = BS->HandleProtocol(image, MAKE_GUID_PTR(EFI_LOADED_IMAGE_PROTOCOL), (void **) &loaded_image);