On Mon, Oct 23, 2023 at 05:35:43PM -0300, Fabiano Rosas wrote: > There is a pattern of calling runstate_get() to store the current > runstate and calling global_state_store() to save the current runstate > for migration. Since global_state_store() also calls runstate_get(), > make it return the runstate instead. > > Signed-off-by: Fabiano Rosas <faro...@suse.de> > --- > include/migration/global_state.h | 2 +- > migration/global_state.c | 7 +++++-- > migration/migration.c | 6 ++---- > 3 files changed, 8 insertions(+), 7 deletions(-)
Reviewed-by: Daniel P. Berrangé <berra...@redhat.com> With regards, Daniel -- |: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|