fix warning test cond always true by removing unnecessary test
authorGregg Reynolds <reynolds-gregg@norc.org>
Mon, 6 Jun 2016 05:58:31 +0000 (00:58 -0500)
committerAshok Babu Channa <ashok.channa@samsung.com>
Wed, 29 Jun 2016 05:23:33 +0000 (05:23 +0000)
Change-Id: I4753c69049295379f85641638b3ece4ca09da5c1
Signed-off-by: Gregg Reynolds <reynolds-gregg@norc.org>
Reviewed-on: https://gerrit.iotivity.org/gerrit/8479
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Ashok Babu Channa <ashok.channa@samsung.com>
resource/csdk/stack/src/rdpayload.c

index 0378852..3c817b4 100644 (file)
@@ -604,10 +604,6 @@ OCTagsPayload* OCCopyTagsResources(const char *deviceName, const unsigned char *
     if (id)
     {
         OICStrcpy((char*)tags->di.id, MAX_IDENTITY_SIZE, (char *)id);
-        if (!tags->di.id)
-        {
-            goto memory_allocation_failed;
-        }
     }
     if (baseURI)
     {