In this case the if statment was not even needed
and was removed.
Removing the if statment cleaned both the parentheses
and empty-body warning.
Change-Id: Ia06fd44f070a66984a71db85d256dc76e61a9bc8
Signed-off-by: George Nash <george.nash@intel.com>
(cherry picked from commit
7e59508a8a3f90fdfe3a1c4762e9005519f9a4e9)
if (!OCRequestIsOCFContentFormat(ehRequest, &isOCFContentFormat))
return NULL;
- if (linksRepPayloadArray = BuildCollectionLinksPayloadArray(resourceUri,
- isOCFContentFormat, &ehRequest->devAddr, createdArraySize))
+ linksRepPayloadArray = BuildCollectionLinksPayloadArray(resourceUri,
+ isOCFContentFormat,
+ &ehRequest->devAddr,
+ createdArraySize);
OIC_LOG_V(DEBUG, TAG, "return value of BuildCollectionLinksPayloadArray() = %s",
(linksRepPayloadArray != NULL) ? "true" : "false");