Commit d208a85f authored by Chen Gang's avatar Chen Gang Committed by Michael Tokarev

xen-hvm: Remove redundant variable 'xstate'

In xen_hvm_change_state_handler(), we can pass 'opaque' with type cast
to xen_main_loop_prepare() directly, there's no need to use additional
variable for it.
Signed-off-by: default avatarChen Gang <>
Acked-by: default avatarStefano Stabellini <>
Signed-off-by: default avatarMichael Tokarev <>
parent 7f151e6f
......@@ -993,9 +993,8 @@ static void xen_main_loop_prepare(XenIOState *state)
static void xen_hvm_change_state_handler(void *opaque, int running,
RunState rstate)
XenIOState *xstate = opaque;
if (running) {
xen_main_loop_prepare((XenIOState *)opaque);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment