Commit db2f2530 authored by Paolo Bonzini's avatar Paolo Bonzini Committed by Juan Quintela
Browse files

migration: remove useless qemu_file_get_error check

migration_put_buffer is never called if there has been an error.
Reviewed-by: default avatarOrit Wasserman <>
Reviewed-by: default avatarJuan Quintela <>
Signed-off-by: default avatarPaolo Bonzini <>
Signed-off-by: default avatarJuan Quintela <>
parent fd45ee2c
......@@ -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;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment