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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]