[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>
This commit is contained in:
@@ -101,7 +101,7 @@ static userptr_t linux_acpi_find ( uint32_t signature, unsigned int index ) {
|
||||
filename, strerror ( rc ) );
|
||||
goto err_read;
|
||||
}
|
||||
header = user_to_virt ( table->data, 0 );
|
||||
header = table->data;
|
||||
if ( ( ( ( size_t ) len ) < sizeof ( *header ) ) ||
|
||||
( ( ( size_t ) len ) < le32_to_cpu ( header->length ) ) ) {
|
||||
rc = -ENOENT;
|
||||
|
||||
Reference in New Issue
Block a user