]> git.ipfire.org Git - thirdparty/libvirt.git/commit
interface: drop dead code
authorEric Blake <eblake@redhat.com>
Tue, 2 Aug 2011 22:08:05 +0000 (16:08 -0600)
committerEric Blake <eblake@redhat.com>
Tue, 2 Aug 2011 22:39:01 +0000 (16:39 -0600)
commitd69b79ab72c20aad059efae5b141fc863dd14feb
treeec09d7ef747150148a64bfa3cd1715f236ab3522
parent0634b6233608dba940f4e68e5fa033400b4b844a
interface: drop dead code

Coverity detected that ifaceGetNthParent had already dereferenced
'nth' prior to the conditional; all callers already complied with
passing a non-NULL pointer so make this part of the contract.

* src/util/interface.h (ifaceGetNthParent): Add annotations.
* src/util/interface.c (ifaceGetNthParent): Drop useless null check.
src/util/interface.c
src/util/interface.h