mirror of
https://github.com/ipxe/ipxe
synced 2026-01-02 18:03:36 +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:
@@ -83,7 +83,7 @@ int prep_segment ( userptr_t segment, size_t filesz, size_t memsz ) {
|
||||
if ( ( start >= memmap.regions[i].start ) &&
|
||||
( end <= memmap.regions[i].end ) ) {
|
||||
/* Found valid region: zero bss and return */
|
||||
memset_user ( segment, filesz, 0, ( memsz - filesz ) );
|
||||
memset ( ( segment + filesz ), 0, ( memsz - filesz ) );
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user