diff options
author | Juan Quintela <quintela@redhat.com> | 2011-10-05 01:14:46 +0200 |
---|---|---|
committer | Juan Quintela <quintela@redhat.com> | 2011-10-20 13:23:52 +0200 |
commit | 42802d47dd09c6e70763676bb2ba59136427ec6a (patch) | |
tree | 93f90e6d8f51d9e586a0914fe34e3a1a14f7cd52 /savevm.c | |
parent | 3961b4dd0e72ae70e612be1097176d8910fc3f5e (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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |