Skip to content

Commit

Permalink
qemu-file: No need to check for shutdown in qemu_file_rate_limit
Browse files Browse the repository at this point in the history
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 <quintela@redhat.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Message-Id: <20230504113841.23130-6-quintela@redhat.com>
  • Loading branch information
Juan Quintela committed May 5, 2023
1 parent f3030d3 commit 27a1243
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions migration/qemu-file.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 27a1243

Please sign in to comment.