mirror of
https://github.com/ipxe/ipxe
synced 2026-01-26 09:23:49 +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:
@@ -1773,8 +1773,8 @@ static void cms_decrypt_okx ( struct cms_test_image *img,
|
||||
|
||||
/* Check decrypted image matches expected plaintext */
|
||||
okx ( img->image.len == expected->image.len, file, line );
|
||||
okx ( memcmp_user ( img->image.data, 0, expected->image.data, 0,
|
||||
expected->image.len ) == 0, file, line );
|
||||
okx ( memcmp ( img->image.data, expected->image.data,
|
||||
expected->image.len ) == 0, file, line );
|
||||
}
|
||||
#define cms_decrypt_ok( data, envelope, keypair, expected ) \
|
||||
cms_decrypt_okx ( data, envelope, keypair, expected, \
|
||||
|
||||
Reference in New Issue
Block a user