Re: [PATCH 16/16] qemu-file: Make qemu_fflush() return errors

2023-05-30 Thread Philippe Mathieu-Daudé
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

[PATCH 16/16] qemu-file: Make qemu_fflush() return errors

2023-05-30 Thread Juan Quintela
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 ---