summaryrefslogtreecommitdiff
path: root/savevm.c
diff options
context:
space:
mode:
authorJuan Quintela <quintela@redhat.com>2011-10-05 01:14:46 +0200
committerJuan Quintela <quintela@redhat.com>2011-10-20 13:23:52 +0200
commit42802d47dd09c6e70763676bb2ba59136427ec6a (patch)
tree93f90e6d8f51d9e586a0914fe34e3a1a14f7cd52 /savevm.c
parent3961b4dd0e72ae70e612be1097176d8910fc3f5e (diff)
migration: use qemu_file_get_error() return value when possible
Signed-off-by: Juan Quintela <quintela@redhat.com>
Diffstat (limited to 'savevm.c')
-rw-r--r--savevm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/savevm.c b/savevm.c
index 89147a6906..5b340b695f 100644
--- a/savevm.c
+++ b/savevm.c
@@ -1885,8 +1885,8 @@ out:
g_free(le);
}
- if (qemu_file_get_error(f)) {
- ret = -EIO;
+ if (ret == 0) {
+ ret = qemu_file_get_error(f);
}
return ret;