IOT-2539 remove parentheses and empty-body warning 15/22615/2
authorGeorge Nash <george.nash@intel.com>
Thu, 21 Sep 2017 21:23:18 +0000 (14:23 -0700)
committerRick Bell <richard.s.bell@intel.com>
Thu, 5 Oct 2017 18:41:55 +0000 (18:41 +0000)
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)

resource/csdk/stack/src/ocpayload.c

index 7ce6f53..ff6562b 100644 (file)
@@ -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");