]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
boot: port more code to use open_directory() helper
authorLennart Poettering <lennart@poettering.net>
Tue, 21 Sep 2021 13:13:29 +0000 (15:13 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 23 Sep 2021 15:24:10 +0000 (17:24 +0200)
src/boot/efi/boot.c

index f1777d8de0b9d3fb4aa32d95ac34af7dedb023f5..dd7731c4da350c86b763f007b311188c530ab71e 100644 (file)
@@ -1498,7 +1498,7 @@ static VOID config_load_entries(
         assert(root_dir);
         assert(loaded_image_path);
 
-        err = uefi_call_wrapper(root_dir->Open, 5, root_dir, &entries_dir, (CHAR16*) L"\\loader\\entries", EFI_FILE_MODE_READ, 0ULL);
+        err = open_directory(root_dir, L"\\loader\\entries", &entries_dir);
         if (EFI_ERROR(err))
                 return;
 
@@ -1969,7 +1969,7 @@ static VOID config_entry_add_linux(
         assert(device);
         assert(root_dir);
 
-        err = uefi_call_wrapper(root_dir->Open, 5, root_dir, &linux_dir, (CHAR16*) L"\\EFI\\Linux", EFI_FILE_MODE_READ, 0ULL);
+        err = open_directory(root_dir, L"\\EFI\\Linux", &linux_dir);
         if (EFI_ERROR(err))
                 return;