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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 case of an error
* removal of unnecessary variables and extra labels
* returning value directly

Signed-off-by: Kristina Hanicova <khanicov@xxxxxxxxxx>
---
tools/virsh-domain.c | 250 +++++++++++++++++--------------------------
1 file changed, 98 insertions(+), 152 deletions(-)

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux