On 30/5/23 14:28, Juan Quintela wrote:
This let us simplify code of this shape.qemu_fflush(f); int ret = qemu_file_get_error(f); if (ret) { return ret; } into: int ret = qemu_fflush(f); if (ret) { return ret; } I updated all callers where there is any error check. Signed-off-by: Juan Quintela <[email protected]> --- migration/qemu-file.h | 2 +- migration/colo.c | 11 +++-------- migration/migration.c | 7 +------ migration/qemu-file.c | 7 ++++--- migration/ram.c | 22 +++++++--------------- migration/rdma.c | 4 +--- migration/savevm.c | 3 +-- 7 files changed, 18 insertions(+), 38 deletions(-)
Reviewed-by: Philippe Mathieu-Daudé <[email protected]>
