]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
Merge pull request #21981 from medhefgo/boot-cleanup
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 5 Jan 2022 11:55:59 +0000 (12:55 +0100)
committerGitHub <noreply@github.com>
Wed, 5 Jan 2022 11:55:59 +0000 (12:55 +0100)
boot: Cleanup

1  2 
src/boot/efi/boot.c
src/boot/efi/drivers.c
src/boot/efi/util.c
src/boot/efi/util.h

index 9935f2e879559c09782a54c1621c37dd3a4642f0,356de0dd6724acdc71aaa0bec5be653a4c7d3280..5c373be587c073afb1dd1781f00b556aac9bae55
@@@ -1636,9 -1655,9 +1655,9 @@@ static UINTN config_entry_find(Config *
          assert(config);
  
          if (!needle)
-                 return -1;
+                 return IDX_INVALID;
  
 -        for (UINTN i = 0; i < config->entry_count; i++)
 +        for (INTN i = config->entry_count - 1; i >= 0; i--)
                  if (MetaiMatch(config->entries[i]->id, (CHAR16*) needle))
                          return i;
  
Simple merge
Simple merge
Simple merge