summaryrefslogtreecommitdiffstats
path: root/replay
diff options
context:
space:
mode:
authorDaniel P. Berrangé2021-02-04 13:48:25 +0100
committerDr. David Alan Gilbert2021-02-08 12:19:51 +0100
commitf61fe11aa6f7f8f0ffe4ddaa56a8108f3ab57854 (patch)
tree9b9a2837f33ce6c5618b7ca01dd1455fd420583f /replay
parentmigration: Make save_snapshot() return bool, not 0/-1 (diff)
downloadqemu-f61fe11aa6f7f8f0ffe4ddaa56a8108f3ab57854.tar.gz
qemu-f61fe11aa6f7f8f0ffe4ddaa56a8108f3ab57854.tar.xz
qemu-f61fe11aa6f7f8f0ffe4ddaa56a8108f3ab57854.zip
migration: stop returning errno from load_snapshot()
None of the callers care about the errno value since there is a full Error object populated. This gives consistency with save_snapshot() which already just returns a boolean value. Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com> [PMD: Return false/true instead of -1/0, document function] Acked-by: Pavel Dovgalyuk <pavel.dovgalyuk@ispras.ru> Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com> Message-Id: <20210204124834.774401-4-berrange@redhat.com> Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Diffstat (limited to 'replay')
-rw-r--r--replay/replay-snapshot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/replay/replay-snapshot.c b/replay/replay-snapshot.c
index 4f2560d156..b289365937 100644
--- a/replay/replay-snapshot.c
+++ b/replay/replay-snapshot.c
@@ -83,7 +83,7 @@ void replay_vmstate_init(void)
exit(1);
}
} else if (replay_mode == REPLAY_MODE_PLAY) {
- if (load_snapshot(replay_snapshot, &err) != 0) {
+ if (!load_snapshot(replay_snapshot, &err)) {
error_report_err(err);
error_report("Could not load snapshot for icount replay");
exit(1);