[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 5/9] qemu-file: No need to check for shutdown in qemu_file_rate_l
From: |
Juan Quintela |
Subject: |
[PATCH 5/9] qemu-file: No need to check for shutdown in qemu_file_rate_limit |
Date: |
Thu, 4 May 2023 13:38:37 +0200 |
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>
---
migration/qemu-file.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/migration/qemu-file.c b/migration/qemu-file.c
index 5aa990b82a..771aba7369 100644
--- a/migration/qemu-file.c
+++ b/migration/qemu-file.c
@@ -742,9 +742,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;
}
--
2.40.0
- [PATCH 0/9] QEMU file cleanups, Juan Quintela, 2023/05/04
- [PATCH 1/9] migration: max_postcopy_bandwidth is a size parameter, Juan Quintela, 2023/05/04
- [PATCH 2/9] migration: qemu_file_total_transferred() function is monotonic, Juan Quintela, 2023/05/04
- [PATCH 4/9] qemu-file: Make rate_limit_used an uint64_t, Juan Quintela, 2023/05/04
- [PATCH 5/9] qemu-file: No need to check for shutdown in qemu_file_rate_limit,
Juan Quintela <=
- [PATCH 6/9] qemu-file: remove shutdown member, Juan Quintela, 2023/05/04
- [PATCH 8/9] qemu-file: Make ram_control_save_page() use accessors for rate_limit, Juan Quintela, 2023/05/04
- [PATCH 7/9] qemu-file: Make total_transferred an uint64_t, Juan Quintela, 2023/05/04