mirror of
https://xff.cz/git/u-boot/
synced 2025-09-01 08:42:12 +02:00
efi_loader: remove superfluous NULL check in bootefi.c
efi_free_pool() and efi_delete_handle() both check if their argument is NULL. The caller should not duplicate this check. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
This commit is contained in:
@@ -481,10 +481,8 @@ efi_status_t efi_run_image(void *source_buffer, efi_uintn_t source_size)
|
|||||||
ret = do_bootefi_exec(handle);
|
ret = do_bootefi_exec(handle);
|
||||||
|
|
||||||
out:
|
out:
|
||||||
if (mem_handle)
|
efi_delete_handle(mem_handle);
|
||||||
efi_delete_handle(mem_handle);
|
efi_free_pool(file_path);
|
||||||
if (file_path)
|
|
||||||
efi_free_pool(file_path);
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user