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:
John Ferlan 2013-01-17 14:17:13 -05:00 committed by Peter Krempa
parent e44d240092
commit ea79a49f31

View File

@ -2168,11 +2168,10 @@ esxVI_LookupObjectContentByType(esxVI_Context *ctx,
/* /*
* Remove values given by the caller from the data structures to prevent * Remove values given by the caller from the data structures to prevent
* them from being freed by the call to esxVI_PropertyFilterSpec_Free(). * them from being freed by the call to esxVI_PropertyFilterSpec_Free().
* objectSpec cannot be NULL here.
*/ */
if (objectSpec != NULL) { objectSpec->obj = NULL;
objectSpec->obj = NULL; objectSpec->selectSet = NULL;
objectSpec->selectSet = NULL;
}
if (propertySpec != NULL) { if (propertySpec != NULL) {
propertySpec->type = NULL; propertySpec->type = NULL;