Re: [PATCH 2/5] virsh: domain: refactoring of small functions

2021-09-23 Thread Ján Tomko
On a Thursday in 2021, Kristina Hanicova wrote: This patch includes: * fix of a mistake in cmdMigrateSetMaxDowntime() - function returned false when it should have returned true Ideally, refactors should not alter behavior, so fixes should be separated. Jano * use of an early return in

[PATCH 2/5] virsh: domain: refactoring of small functions

2021-09-23 Thread Kristina Hanicova
This patch includes: * fix of a mistake in cmdMigrateSetMaxDowntime() - function returned false when it should have returned true * use of an early return in case of an error * removal of unnecessary variables and extra labels * returning value directly Signed-off-by: Kristina Hanicova ---