]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virsh: domain: remove 'ret' variable and use 'count' instead
authorKristina Hanicova <khanicov@redhat.com>
Fri, 24 Sep 2021 15:17:49 +0000 (17:17 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Sat, 25 Sep 2021 07:30:43 +0000 (09:30 +0200)
commitbd82e3d81af3c568743cdc51b3f7611c61451f3c
tree34008b98bef37785747368a7fbf020f4a537806c
parent24ddb0cdfeab678cd00e22efaac1a1f7f904668e
virsh: domain: remove 'ret' variable and use 'count' instead

This patch also includes use of an early return in case of an
error. I think the changes make the functions more readable.

Signed-off-by: Kristina Hanicova <khanicov@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
tools/virsh-domain.c