From db2f25309af1af0f27e0ddec4acc3b66837fa668 Mon Sep 17 00:00:00 2001 From: Paolo Bonzini Date: Fri, 22 Feb 2013 17:36:34 +0100 Subject: migration: remove useless qemu_file_get_error check migration_put_buffer is never called if there has been an error. Reviewed-by: Orit Wasserman Reviewed-by: Juan Quintela Signed-off-by: Paolo Bonzini Signed-off-by: Juan Quintela --- migration.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'migration.c') diff --git a/migration.c b/migration.c index 414e0f9023..5d99999e47 100644 --- a/migration.c +++ b/migration.c @@ -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; } -- cgit v1.2.3