]> git.proxmox.com Git - mirror_ovs.git/commit - ovn/utilities/ovn-sbctl.c
ovn-nbctl, ovn-sbctl, ovs-vsctl: Remove gratuitous NULL checks.
authorBen Pfaff <blp@ovn.org>
Sat, 27 May 2017 03:44:19 +0000 (20:44 -0700)
committerBen Pfaff <blp@ovn.org>
Tue, 30 May 2017 14:48:28 +0000 (07:48 -0700)
commit6851589c0c129ae21f97f1e44c09b15e28efd851
tree804a1dc6a22eb3fc4f78a8cf4b0824cd5bcf830c
parent8abe89de9779c35f44d304bb28432e34ec7c3b85
ovn-nbctl, ovn-sbctl, ovs-vsctl: Remove gratuitous NULL checks.

These functions all set txn and do not un-set it within their main
command execution function, so it's gratuitous to check it along this path.

Found by Coverity.

Reported-at: https://scan3.coverity.com/reports.htm#v16889/p10449/fileInstanceId=14763082&defectInstanceId=4305338&mergedDefectId=180417
Signed-off-by: Ben Pfaff <blp@ovn.org>
Acked-by: Miguel Angel Ajo <majopela@redhat.com>
ovn/utilities/ovn-nbctl.c
ovn/utilities/ovn-sbctl.c
utilities/ovs-vsctl.c