mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-10-30 09:53:10 +00:00
esx: No need to check for objectSpec
Coverity complains that the objectSpec != NULL check was unnecessary because there was no way to get to the label with objectSpec = NULL.
This commit is contained in:
parent
e44d240092
commit
ea79a49f31
@ -2168,11 +2168,10 @@ esxVI_LookupObjectContentByType(esxVI_Context *ctx,
|
||||
/*
|
||||
* Remove values given by the caller from the data structures to prevent
|
||||
* them from being freed by the call to esxVI_PropertyFilterSpec_Free().
|
||||
* objectSpec cannot be NULL here.
|
||||
*/
|
||||
if (objectSpec != NULL) {
|
||||
objectSpec->obj = NULL;
|
||||
objectSpec->selectSet = NULL;
|
||||
}
|
||||
objectSpec->obj = NULL;
|
||||
objectSpec->selectSet = NULL;
|
||||
|
||||
if (propertySpec != NULL) {
|
||||
propertySpec->type = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user