mirror of
https://github.com/systemd/systemd.git
synced 2024-12-26 03:22:00 +03:00
Merge pull request #21065 from keszybz/efi-warnings
Clean up unused variables in efi code
This commit is contained in:
commit
97c373c7de
@ -82,7 +82,6 @@ EFI_STATUS load_drivers(
|
||||
|
||||
_cleanup_(FileHandleClosep) EFI_FILE_HANDLE drivers_dir = NULL;
|
||||
_cleanup_freepool_ EFI_FILE_INFO *dirent = NULL;
|
||||
_cleanup_freepool_ EFI_DEVICE_PATH *path = NULL;
|
||||
UINTN dirent_size = 0, n_succeeded = 0;
|
||||
EFI_STATUS err;
|
||||
|
||||
@ -96,8 +95,6 @@ EFI_STATUS load_drivers(
|
||||
return log_error_status_stall(err, L"Failed to open \\EFI\\systemd\\drivers: %r", err);
|
||||
|
||||
for (;;) {
|
||||
_cleanup_freepool_ CHAR16 *d = NULL;
|
||||
|
||||
err = readdir_harder(drivers_dir, &dirent, &dirent_size);
|
||||
if (EFI_ERROR(err))
|
||||
return log_error_status_stall(err, L"Failed to read extra directory of loaded image: %r", err);
|
||||
|
@ -138,6 +138,9 @@ EFI_STATUS linux_exec(
|
||||
assert(linux_buffer);
|
||||
assert(initrd_buffer || initrd_length == 0);
|
||||
|
||||
if (linux_length < sizeof(struct boot_params))
|
||||
return EFI_LOAD_ERROR;
|
||||
|
||||
image_params = (const struct boot_params *) linux_buffer;
|
||||
|
||||
if (image_params->hdr.boot_flag != 0xAA55 ||
|
||||
|
Loading…
Reference in New Issue
Block a user