]> git.ipfire.org Git - thirdparty/libvirt.git/commit
tools: virsh-domain: Remove redundant conditional before virshDomainFree
authorYi Li <yili@winhong.com>
Fri, 11 Sep 2020 02:24:52 +0000 (10:24 +0800)
committerErik Skultety <eskultet@redhat.com>
Fri, 11 Sep 2020 08:12:09 +0000 (10:12 +0200)
commitb1f10ed03141d6bce48f9f76660fcb9fcb7abcea
treecd279681975774fae98d381ecc389d543d9af838
parentb4c0fcd5cc41ce83e4d027c3128c8de1021083c3
tools: virsh-domain: Remove redundant conditional before virshDomainFree

virshDomainFree handles NULL pointers gracefully, so there's no need to
check the pointer before the call.

Signed-off-by: Yi Li <yili@winhong.com>
Reviewed-by: Erik Skultety <eskultet@redhat.com>
tools/virsh-domain-monitor.c
tools/virsh-domain.c