mirror of
https://github.com/mii443/qemu.git
synced 2025-08-22 23:25:48 +00:00
timer: use an inline function for free
Similarly to allocation, do it from an inline function. This allows tests to only use the headers for allocation/free of timer. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Greg Kurz <groug@kaod.org> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
@ -355,11 +355,6 @@ void timer_deinit(QEMUTimer *ts)
|
||||
ts->timer_list = NULL;
|
||||
}
|
||||
|
||||
void timer_free(QEMUTimer *ts)
|
||||
{
|
||||
g_free(ts);
|
||||
}
|
||||
|
||||
static void timer_del_locked(QEMUTimerList *timer_list, QEMUTimer *ts)
|
||||
{
|
||||
QEMUTimer **pt, *t;
|
||||
|
Reference in New Issue
Block a user