From: George Nash Date: Thu, 21 Sep 2017 21:23:18 +0000 (-0700) Subject: IOT-2539 remove parentheses and empty-body warning X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=af8efa39d7ffa92d4539b520891f33e846f7abc0;p=platform%2Fupstream%2Fiotivity.git IOT-2539 remove parentheses and empty-body warning 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 (cherry picked from commit 7e59508a8a3f90fdfe3a1c4762e9005519f9a4e9) --- diff --git a/resource/csdk/stack/src/ocpayload.c b/resource/csdk/stack/src/ocpayload.c index 7ce6f53d7..ff6562bcd 100644 --- a/resource/csdk/stack/src/ocpayload.c +++ b/resource/csdk/stack/src/ocpayload.c @@ -2263,8 +2263,10 @@ OCRepPayload** OC_CALL OCLinksPayloadArrayCreate(const char* resourceUri, 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");