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

Kristina Hanicova khanicov at redhat.com
Thu Sep 23 23:49:07 UTC 2021


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




More information about the libvir-list mailing list