mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 17:23:56 -06:00
Remove superfluous timer_del() calls
This commit is the result of running the timer-del-timer-free.cocci script on the whole source tree. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Acked-by: Corey Minyard <cminyard@mvista.com> Acked-by: Paolo Bonzini <pbonzini@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 20201215154107.3255-4-peter.maydell@linaro.org
This commit is contained in:
parent
01b3e68bb1
commit
729cc68373
42 changed files with 0 additions and 58 deletions
|
@ -741,7 +741,6 @@ static void virtio_serial_post_load_timer_cb(void *opaque)
|
|||
}
|
||||
}
|
||||
g_free(s->post_load->connected);
|
||||
timer_del(s->post_load->timer);
|
||||
timer_free(s->post_load->timer);
|
||||
g_free(s->post_load);
|
||||
s->post_load = NULL;
|
||||
|
@ -1138,7 +1137,6 @@ static void virtio_serial_device_unrealize(DeviceState *dev)
|
|||
g_free(vser->ports_map);
|
||||
if (vser->post_load) {
|
||||
g_free(vser->post_load->connected);
|
||||
timer_del(vser->post_load->timer);
|
||||
timer_free(vser->post_load->timer);
|
||||
g_free(vser->post_load);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue