]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
sd-boot: drop initialization of 'line' which we override in the next line anyway
authorLennart Poettering <lennart@poettering.net>
Wed, 20 Jun 2018 16:25:19 +0000 (18:25 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 16 Oct 2018 14:44:34 +0000 (16:44 +0200)
src/boot/efi/boot.c

index 48c9db7c154e173a5d800b251ce333b511f51a76..0c4ff40afedbad13c7af25edc6b6869ee6ea0a77 100644 (file)
@@ -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);