The function has only one caller. Inline it to simplify the upcoming refactoring.
Signed-off-by: Vladimir Sementsov-Ogievskiy <[email protected]> --- system/runstate.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/system/runstate.c b/system/runstate.c index 1958168e778..01f936649b4 100644 --- a/system/runstate.c +++ b/system/runstate.c @@ -597,11 +597,6 @@ ShutdownCause qemu_reset_requested_get(void) return reset_requested; } -static int qemu_shutdown_requested(void) -{ - return qatomic_xchg(&shutdown_requested, SHUTDOWN_CAUSE_NONE); -} - static void qemu_kill_report(void) { if (!qtest_driver() && shutdown_signal) { @@ -1054,7 +1049,7 @@ static bool main_loop_should_exit(int *status) if (qemu_suspend_requested()) { qemu_system_suspend(); } - request = qemu_shutdown_requested(); + request = qatomic_xchg(&shutdown_requested, SHUTDOWN_CAUSE_NONE); if (request) { qemu_kill_report(); qemu_system_shutdown(request); -- 2.43.0
