mirror of
https://github.com/ipxe/ipxe
synced 2026-02-14 02:31:26 +03:00
[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:
@@ -669,7 +669,7 @@ static userptr_t efipci_dma_umalloc ( struct dma_device *dma,
|
||||
static void efipci_dma_ufree ( struct dma_device *dma, struct dma_mapping *map,
|
||||
userptr_t addr, size_t len ) {
|
||||
|
||||
efipci_dma_free ( dma, map, user_to_virt ( addr, 0 ), len );
|
||||
efipci_dma_free ( dma, map, addr, len );
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user