[libvirt] [PATCH] esx: drop dead code to silence Coverity

Michal Privoznik mprivozn at redhat.com
Fri Oct 14 06:28:24 UTC 2011


On 14.10.2011 00:08, Eric Blake wrote:
> Coverity detected that the only way to get to the cleanup label
> is if objectSpec had been successfully allocated, so the null
> check was dead code.
> 
> * src/esx/esx_vi.c (esxVI_LookupObjectContentByType): Drop
> redundant null check.
> ---

ACK,

agree that if we reach cleanup label, there is no way for objectSpec
to be NULL.

Michal




More information about the libvir-list mailing list