[PATCH 5/5] virsh: refactor functions to not use 'ret' variable