mirror of
https://github.com/mii443/qemu.git
synced 2025-12-16 17:18:49 +00:00
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>
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user