From: Lennart Poettering Date: Wed, 20 Jun 2018 16:25:19 +0000 (+0200) Subject: sd-boot: drop initialization of 'line' which we override in the next line anyway X-Git-Tag: v240~522^2~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1336bb9864108b60296151f745cf264170ed6910;p=thirdparty%2Fsystemd.git sd-boot: drop initialization of 'line' which we override in the next line anyway --- diff --git a/src/boot/efi/boot.c b/src/boot/efi/boot.c index 48c9db7c154..0c4ff40afed 100644 --- a/src/boot/efi/boot.c +++ b/src/boot/efi/boot.c @@ -968,7 +968,6 @@ static VOID config_defaults_load_from_file(Config *config, CHAR8 *content) { UINTN pos = 0; CHAR8 *key, *value; - line = content; while ((line = line_get_key_value(content, (CHAR8 *)" \t", &pos, &key, &value))) { if (strcmpa((CHAR8 *)"timeout", key) == 0) { _cleanup_freepool_ CHAR16 *s = NULL; @@ -1040,7 +1039,6 @@ static VOID config_entry_add_from_file(Config *config, EFI_HANDLE *device, CHAR1 entry = AllocateZeroPool(sizeof(ConfigEntry)); - line = content; while ((line = line_get_key_value(content, (CHAR8 *)" \t", &pos, &key, &value))) { if (strcmpa((CHAR8 *)"title", key) == 0) { FreePool(entry->title); @@ -1560,7 +1558,6 @@ static VOID config_entry_add_linux(Config *config, EFI_LOADED_IMAGE *loaded_imag continue; /* read properties from the embedded os-release file */ - line = content; while ((line = line_get_key_value(content, (CHAR8 *)"=", &pos, &key, &value))) { if (strcmpa((CHAR8 *)"PRETTY_NAME", key) == 0) { FreePool(os_name);