summary refs log tree commit diff stats
path: root/include/migration/global_state.h
diff options
context:
space:
mode:
authorVladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>2023-05-17 15:37:49 +0300
committerJuan Quintela <quintela@redhat.com>2023-06-02 01:03:19 +0200
commitc33f1829f891058442e9670325decff0c8a2e28c (patch)
tree27ba73fcd8e8ae2a56bc1edbbec326a86615fac8 /include/migration/global_state.h
parent242b74eb69d0e53b25e294331a192b7a458b8e46 (diff)
downloadfocaccia-qemu-c33f1829f891058442e9670325decff0c8a2e28c.tar.gz
focaccia-qemu-c33f1829f891058442e9670325decff0c8a2e28c.zip
migration: never fail in global_state_store()
Actually global_state_store() can never fail. Let's get rid of extra
error paths.

To make things clear, use new runstate_get() and use same approach for
global_state_store() and global_state_store_running().

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Message-Id: <20230517123752.21615-3-vsementsov@yandex-team.ru>
Signed-off-by: Juan Quintela <quintela@redhat.com>
Diffstat (limited to 'include/migration/global_state.h')
-rw-r--r--include/migration/global_state.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/migration/global_state.h b/include/migration/global_state.h
index 945eb35d5b..d7c2cd3216 100644
--- a/include/migration/global_state.h
+++ b/include/migration/global_state.h
@@ -16,7 +16,7 @@
 #include "qapi/qapi-types-run-state.h"
 
 void register_global_state(void);
-int global_state_store(void);
+void global_state_store(void);
 void global_state_store_running(void);
 bool global_state_received(void);
 RunState global_state_get_runstate(void);