mirror of
https://github.com/ipxe/ipxe
synced 2026-05-23 20:00:12 +03:00
[uaccess] Remove redundant memcpy_user() and related string functions
The memcpy_user(), memmove_user(), memcmp_user(), memset_user(), and strlen_user() functions are now just straightforward wrappers around the corresponding standard library functions. Remove these redundant wrappers. Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -1000,7 +1000,7 @@ static int xhci_scratchpad_alloc ( struct xhci_device *xhci ) {
|
||||
rc = -ENOMEM;
|
||||
goto err_alloc;
|
||||
}
|
||||
memset_user ( scratch->buffer, 0, 0, buffer_len );
|
||||
memset ( scratch->buffer, 0, buffer_len );
|
||||
|
||||
/* Allocate scratchpad array */
|
||||
array_len = ( scratch->count * sizeof ( scratch->array[0] ) );
|
||||
|
||||
Reference in New Issue
Block a user