From: Juan Quintela Date: Thu, 4 May 2023 11:38:37 +0000 (+0200) Subject: qemu-file: No need to check for shutdown in qemu_file_rate_limit X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=27a1243f14af1bc9430c94d5c13f51c734788959;p=qmiga%2Fqemu.git qemu-file: No need to check for shutdown in qemu_file_rate_limit After calling qemu_file_shutdown() we set the error as -EIO if there is no another previous error, so no need to check it here. Signed-off-by: Juan Quintela Reviewed-by: Peter Xu Reviewed-by: Daniel P. Berrangé Message-Id: <20230504113841.23130-6-quintela@redhat.com> --- diff --git a/migration/qemu-file.c b/migration/qemu-file.c index 578b6309ba..a4ea808b15 100644 --- a/migration/qemu-file.c +++ b/migration/qemu-file.c @@ -732,9 +732,6 @@ int64_t qemu_file_total_transferred(QEMUFile *f) int qemu_file_rate_limit(QEMUFile *f) { - if (f->shutdown) { - return 1; - } if (qemu_file_get_error(f)) { return 1; }