mirror of
https://github.com/mii443/qemu.git
synced 2025-12-10 14:38:31 +00:00
remove useless cast
values are already pointers, no need to cast them to void * Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
committed by
Anthony Liguori
parent
31d4ee6cf6
commit
1c39e2a2e4
@@ -141,8 +141,7 @@ int exec_start_incoming_migration(const char *command)
|
|||||||
}
|
}
|
||||||
|
|
||||||
qemu_set_fd_handler2(qemu_stdio_fd(f), NULL,
|
qemu_set_fd_handler2(qemu_stdio_fd(f), NULL,
|
||||||
exec_accept_incoming_migration, NULL,
|
exec_accept_incoming_migration, NULL, f);
|
||||||
(void *)(unsigned long)f);
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -136,8 +136,7 @@ int fd_start_incoming_migration(const char *infd)
|
|||||||
return -errno;
|
return -errno;
|
||||||
}
|
}
|
||||||
|
|
||||||
qemu_set_fd_handler2(fd, NULL, fd_accept_incoming_migration, NULL,
|
qemu_set_fd_handler2(fd, NULL, fd_accept_incoming_migration, NULL, f);
|
||||||
(void *)(unsigned long)f);
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user