diff options
author | Markus Armbruster <armbru@redhat.com> | 2022-11-23 14:38:11 +0100 |
---|---|---|
committer | Markus Armbruster <armbru@redhat.com> | 2022-12-14 16:19:35 +0100 |
commit | 3d558330adec7233da6c48c5e8584eb176fb77d7 (patch) | |
tree | 74b9faf5861c62550fb09356ec73583d8bb42f21 /linux-user/syscall.c | |
parent | ea3a008d2d9ced9c4f93871c823baee237047f93 (diff) | |
download | qemu-3d558330adec7233da6c48c5e8584eb176fb77d7.zip qemu-3d558330adec7233da6c48c5e8584eb176fb77d7.tar.gz qemu-3d558330adec7233da6c48c5e8584eb176fb77d7.tar.bz2 |
Drop more useless casts from void * to pointer
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <20221123133811.1398562-1-armbru@redhat.com>
Diffstat (limited to 'linux-user/syscall.c')
-rw-r--r-- | linux-user/syscall.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-user/syscall.c b/linux-user/syscall.c index 24b2575..1f8c10f 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -5471,7 +5471,7 @@ static abi_long do_ioctl_rt(const IOCTLEntry *ie, uint8_t *buf_temp, for (i = 0; i < se->nb_fields; i++) { if (dst_offsets[i] == offsetof(struct rtentry, rt_dev)) { assert(*field_types == TYPE_PTRVOID); - target_rt_dev_ptr = (abi_ulong *)(argptr + src_offsets[i]); + target_rt_dev_ptr = argptr + src_offsets[i]; host_rt_dev_ptr = (unsigned long *)(buf_temp + dst_offsets[i]); if (*target_rt_dev_ptr != 0) { *host_rt_dev_ptr = (unsigned long)lock_user_string( |