[PATCH v2 0/4] virsh: refactor unnecessary variables and else branch

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

 



This is partially v2 of:
https://listman.redhat.com/archives/libvir-list/2021-September/msg00731.html

Diff to v1:
* split changes into smaller patches

Kristina Hanicova (4):
  virsh: remove variable 'ret' and use early return if possible
  virsh: remove variable 'ret' in cmdVersion()
  virsh: remove variable 'ret' and 'inactive'
  virsh: util: remove 'else' branch after return

 tools/virsh-host.c      | 25 +++++-----------
 tools/virsh-interface.c | 65 ++++++++++++++++++-----------------------
 tools/virsh-network.c   | 47 +++++++++++++----------------
 tools/virsh-nodedev.c   | 32 ++++++++------------
 tools/virsh-nwfilter.c  | 15 +++++-----
 tools/virsh-util.c      |  3 +-
 6 files changed, 76 insertions(+), 111 deletions(-)

-- 
2.31.1




[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