]> git.ipfire.org Git - thirdparty/libvirt.git/commit
util: netdevbridge: Refactor error handling in virNetDevBridgeCreate
authorPeter Krempa <pkrempa@redhat.com>
Wed, 28 Jun 2017 12:14:53 +0000 (14:14 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 28 Jun 2017 13:27:17 +0000 (15:27 +0200)
commitd077fbc2217f6e2cb07d35c020024fbc109efa49
treeee0115f1222e4c8b480e3592228f91147967fb10
parentc06b623c53581e38c03c96a78ef0efa577747112
util: netdevbridge: Refactor error handling in virNetDevBridgeCreate

Replace the switch statement with a simpler if statement. This also
removes the fallthrough path that coverity was complaining about.
src/util/virnetdevbridge.c