[libvirt PATCH 05/10] qemu: eliminate ret in qemuExtDevicesStart
Peter Krempa
pkrempa at redhat.com
Tue Jan 28 11:03:19 UTC 2020
On Tue, Jan 28, 2020 at 11:31:21 +0100, Ján Tomko wrote:
> All the callees return either 0 or -1 so there is no need
> for propagating the value. And we bail on the first error.
>
> Remove the variable to make the function simpler.
>
> Signed-off-by: Ján Tomko <jtomko at redhat.com>
> ---
> src/qemu/qemu_extdevice.c | 12 +++++-------
> 1 file changed, 5 insertions(+), 7 deletions(-)
Reviewed-by: Peter Krempa <pkrempa at redhat.com>
More information about the libvir-list
mailing list