[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 13/16] qemu-file: Simplify qemu_file_get_error()
From: |
Juan Quintela |
Subject: |
[PATCH 13/16] qemu-file: Simplify qemu_file_get_error() |
Date: |
Tue, 30 May 2023 14:28:10 +0200 |
If we pass a NULL error is the same that returning dirrectly the value.
Signed-off-by: Juan Quintela <quintela@redhat.com>
---
migration/qemu-file.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/migration/qemu-file.c b/migration/qemu-file.c
index a3d0412b5f..7cf457a981 100644
--- a/migration/qemu-file.c
+++ b/migration/qemu-file.c
@@ -209,7 +209,7 @@ void qemu_file_set_error_obj(QEMUFile *f, int ret, Error
*err)
*/
int qemu_file_get_error(QEMUFile *f)
{
- return qemu_file_get_error_obj(f, NULL);
+ return f->last_error;
}
/*
--
2.40.1
- Re: [PATCH 12/16] migration: migration_rate_limit_reset() don't need the QEMUFile, (continued)
- [PATCH 14/16] migration: Use migration_transferred_bytes(), Juan Quintela, 2023/05/30
- [PATCH 15/16] migration: Remove transferred atomic counter, Juan Quintela, 2023/05/30
- [PATCH 16/16] qemu-file: Make qemu_fflush() return errors, Juan Quintela, 2023/05/30
- [PATCH 02/16] migration: Change qemu_file_transferred to noflush, Juan Quintela, 2023/05/30
- [PATCH 06/16] qemu_file: Use a stat64 for qemu_file_transferred, Juan Quintela, 2023/05/30
- [PATCH 03/16] migration: Use qemu_file_transferred_noflush() for block migration., Juan Quintela, 2023/05/30
- [PATCH 13/16] qemu-file: Simplify qemu_file_get_error(),
Juan Quintela <=
- [PATCH 05/16] qemu-file: We only call qemu_file_transferred_* on the sending side, Juan Quintela, 2023/05/30
- [PATCH 08/16] migration: Use the number of transferred bytes directly, Juan Quintela, 2023/05/30
- [PATCH 09/16] qemu_file: Remove unused qemu_file_transferred(), Juan Quintela, 2023/05/30
- [PATCH 04/16] qemu-file: Don't call qemu_fflush() for read only files, Juan Quintela, 2023/05/30