diff options
| author | Michael Brown | 2025-04-21 01:15:52 +0200 |
|---|---|---|
| committer | Michael Brown | 2025-04-21 01:15:52 +0200 |
| commit | 4535548cba255c220719a55d02535e06da82ba47 (patch) | |
| tree | cc889e117fe18ab14ca45033321e5518b550bf7b /src/image | |
| parent | [uaccess] Remove redundant memcpy_user() and related string functions (diff) | |
| download | ipxe-4535548cba255c220719a55d02535e06da82ba47.tar.gz ipxe-4535548cba255c220719a55d02535e06da82ba47.tar.xz ipxe-4535548cba255c220719a55d02535e06da82ba47.zip | |
[uaccess] Remove redundant user_to_virt()
The user_to_virt() function is now a straightforward wrapper around
addition, with the addend almost invariably being zero.
Remove this redundant wrapper.
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/image')
| -rw-r--r-- | src/image/efi_image.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/image/efi_image.c b/src/image/efi_image.c index c87196487..2b0ff567a 100644 --- a/src/image/efi_image.c +++ b/src/image/efi_image.c @@ -245,8 +245,8 @@ static int efi_image_exec ( struct image *image ) { /* Attempt loading image */ handle = NULL; if ( ( efirc = bs->LoadImage ( FALSE, efi_image_handle, path, - user_to_virt ( exec->data, 0 ), - exec->len, &handle ) ) != 0 ) { + exec->data, exec->len, + &handle ) ) != 0 ) { /* Not an EFI image */ rc = -EEFI_LOAD ( efirc ); DBGC ( image, "EFIIMAGE %s could not load: %s\n", @@ -379,8 +379,8 @@ static int efi_image_probe ( struct image *image ) { /* Attempt loading image */ handle = NULL; if ( ( efirc = bs->LoadImage ( FALSE, efi_image_handle, &empty_path, - user_to_virt ( image->data, 0 ), - image->len, &handle ) ) != 0 ) { + image->data, image->len, + &handle ) ) != 0 ) { /* Not an EFI image */ rc = -EEFI_LOAD ( efirc ); DBGC ( image, "EFIIMAGE %s could not load: %s\n", |
