mirror of
https://github.com/ipxe/ipxe
synced 2026-02-08 13:52:13 +03:00
[uaccess] Remove trivial uses of userptr_t
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -42,8 +42,8 @@ FILE_LICENCE ( GPL2_OR_LATER );
|
||||
* @v data Data to fill in
|
||||
* @ret len Length read, or negative error
|
||||
*/
|
||||
int linux_sysfs_read ( const char *filename, userptr_t *data ) {
|
||||
userptr_t tmp;
|
||||
int linux_sysfs_read ( const char *filename, void **data ) {
|
||||
void *tmp;
|
||||
ssize_t read;
|
||||
size_t len;
|
||||
int fd;
|
||||
@@ -59,7 +59,7 @@ int linux_sysfs_read ( const char *filename, userptr_t *data ) {
|
||||
}
|
||||
|
||||
/* Read file */
|
||||
for ( *data = UNULL, len = 0 ; ; len += read ) {
|
||||
for ( *data = NULL, len = 0 ; ; len += read ) {
|
||||
|
||||
/* (Re)allocate space */
|
||||
tmp = urealloc ( *data, ( len + LINUX_SYSFS_BLKSIZE ) );
|
||||
|
||||
Reference in New Issue
Block a user