]> git.ipfire.org Git - thirdparty/libvirt.git/commit
interface: Remove some unnecessary goto's for Interface tests
authorJohn Ferlan <jferlan@redhat.com>
Fri, 14 Apr 2017 13:05:21 +0000 (09:05 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Fri, 2 Jun 2017 19:50:14 +0000 (15:50 -0400)
commit4845df2784ef364b78210d3f0c555ed8ff5fb00c
treec721f1f441bea62df71b94555728ac4f6932bd39
parent3a18ee91b7b8177262beccfadc97dcb9a0a4151e
interface: Remove some unnecessary goto's for Interface tests

Rather than using goto cleanup on object find failure and having cleanup
need to check if the obj was present before unlocking, just return immediately.

Signed-off-by: John Ferlan <jferlan@redhat.com>
src/test/test_driver.c