mirror of
https://github.com/ipxe/ipxe
synced 2025-12-14 07:50:43 +03:00
[uaccess] Remove redundant userptr_add() and userptr_diff()
The userptr_add() and userptr_diff() functions are now just straightforward wrappers around addition and subtraction. Remove these redundant wrappers. Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -111,7 +111,7 @@ static int gzip_extract ( struct image *image, struct image *extracted ) {
|
||||
}
|
||||
|
||||
/* Initialise input chunk */
|
||||
deflate_chunk_init ( &in, userptr_add ( image->data, offset ), 0, len );
|
||||
deflate_chunk_init ( &in, ( image->data + offset ), 0, len );
|
||||
|
||||
/* Presize extracted image */
|
||||
if ( ( rc = image_set_len ( extracted,
|
||||
|
||||
Reference in New Issue
Block a user