]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
virfile: Avoid Coverity IDENTICAL_BRANCHES error
authorJohn Ferlan <jferlan@redhat.com>
Tue, 1 Sep 2015 10:56:38 +0000 (06:56 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Fri, 4 Sep 2015 19:19:04 +0000 (15:19 -0400)
commit53caf99db67dbfd245abd4bb83c3cef10f44197a
treef2dc0f5adafbd4b6da9fefd35da091247c5d647d
parent11822fff286f72ff24db3c6060107124137ae818
virfile: Avoid Coverity IDENTICAL_BRANCHES error

In virFileNBDDeviceFindUnused if virFileNBDDeviceIsBusy returns 0,
then both branches jumped to cleanup, so just use ignore_value
since the function returns NULL or some memory and the caller
handles the error.
src/util/virfile.c