mirror of
https://github.com/ipxe/ipxe
synced 2026-02-14 02:31:26 +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:
@@ -807,7 +807,7 @@ static inline __attribute__ (( always_inline )) userptr_t
|
||||
gve_buffer ( struct gve_queue *queue, unsigned int index ) {
|
||||
|
||||
/* Pages are currently allocated as a single contiguous block */
|
||||
return userptr_add ( queue->qpl.data, gve_address ( queue, index ) );
|
||||
return ( queue->qpl.data + gve_address ( queue, index ) );
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user