diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2013-02-22 17:36:17 +0100 |
---|---|---|
committer | Juan Quintela <quintela@redhat.com> | 2013-03-11 13:32:01 +0100 |
commit | dba433c03a0f5dc22a459435dd89557886298921 (patch) | |
tree | 7311d20dd8d7b3cc767486023df055d8f5ab69a9 /bsd-user | |
parent | 63dfbd7ee03185c181a0791958ec9c8337089b55 (diff) |
migration: simplify error handling
Always use qemu_file_get_error to detect errors, since that is how
QEMUFile itself drops I/O after an error occurs. There is no need
to propagate and check return values all the time.
Also remove the "complete" member, since we know that it is set (via
migrate_fd_cleanup) only when the state changes.
Reviewed-by: Orit Wasserman <owasserm@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
Diffstat (limited to 'bsd-user')
0 files changed, 0 insertions, 0 deletions