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

2021-09-23 Thread Ján Tomko
On a Thursday in 2021, Kristina Hanicova wrote: This patch targets smaller functions and rewrites them into the pattern using an early return without needing redundant 'ret' variable (if possible). Patch also includes removal of 'else' branch after 'return' and other small alterations.

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

2021-09-23 Thread Kristina Hanicova
This patch targets smaller functions and rewrites them into the pattern using an early return without needing redundant 'ret' variable (if possible). Patch also includes removal of 'else' branch after 'return' and other small alterations. Signed-off-by: Kristina Hanicova --- tools/virsh-host.c