mirror of
https://github.com/qemu/qemu.git
synced 2024-11-28 22:33:36 +08:00
migration: remove useless qemu_file_get_error check
migration_put_buffer is never called if there has been an error. 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>
This commit is contained in:
parent
fd45ee2c64
commit
db2f25309a
@ -523,12 +523,6 @@ static int migration_put_buffer(void *opaque, const uint8_t *buf,
|
||||
|
||||
DPRINTF("putting %d bytes at %" PRId64 "\n", size, pos);
|
||||
|
||||
ret = qemu_file_get_error(s->file);
|
||||
if (ret) {
|
||||
DPRINTF("flush when error, bailing: %s\n", strerror(-ret));
|
||||
return ret;
|
||||
}
|
||||
|
||||
if (size <= 0) {
|
||||
return size;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user