Juan Quintela <quint...@redhat.com> writes: > 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. > qemu_fclose() don't need to check for f->last_error because > qemu_fflush() returns it at the beggining of the function. > > Reviewed-by: Philippe Mathieu-Daudé <phi...@linaro.org> > Signed-off-by: Juan Quintela <quint...@redhat.com>
Reviewed-by: Fabiano Rosas <faro...@suse.de>