summaryrefslogtreecommitdiffstats
path: root/src/crypto
diff options
context:
space:
mode:
authorMichael Brown2025-04-20 19:29:48 +0200
committerMichael Brown2025-04-21 00:00:13 +0200
commit89fe7886897be76ed902317e311d60ae654057aa (patch)
treeeddd42226c8336226d0a9649d705ccc9f02c88f4 /src/crypto
parent[uaccess] Remove redundant userptr_add() and userptr_diff() (diff)
downloadipxe-89fe7886897be76ed902317e311d60ae654057aa.tar.gz
ipxe-89fe7886897be76ed902317e311d60ae654057aa.tar.xz
ipxe-89fe7886897be76ed902317e311d60ae654057aa.zip
[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>
Diffstat (limited to 'src/crypto')
-rw-r--r--src/crypto/deflate.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/crypto/deflate.c b/src/crypto/deflate.c
index 7ad39ec1b..c6cce7516 100644
--- a/src/crypto/deflate.c
+++ b/src/crypto/deflate.c
@@ -464,8 +464,8 @@ static void deflate_copy ( struct deflate_chunk *out,
if ( copy_len > len )
copy_len = len;
while ( copy_len-- ) {
- memcpy_user ( out->data, out_offset++,
- start, offset++, 1 );
+ memcpy ( ( out->data + out_offset++ ),
+ ( start + offset++ ), 1 );
}
}
out->offset += len;