Fix defect detected by static code analyzer
authorParkhi <h_w.park@samsung.com>
Wed, 29 Mar 2017 00:52:57 +0000 (09:52 +0900)
committerUze Choi <uzchoi@samsung.com>
Fri, 31 Mar 2017 02:03:27 +0000 (02:03 +0000)
 - Changed return value because function declared void returns a non-void value.

Change-Id: I154e572292d95905ddd222b049cde7e870bd67f8
Signed-off-by: Parkhi <h_w.park@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/18305
Reviewed-by: Jihun Ha <jihun.ha@samsung.com>
Tested-by: jenkins-iotivity <jenkins@iotivity.org>
Reviewed-by: Phil Coval <philippe.coval@osg.samsung.com>
Reviewed-by: Uze Choi <uzchoi@samsung.com>
Tested-by: Uze Choi <uzchoi@samsung.com>
service/easy-setup/enrollee/src/resourcehandler.c

index 8a1637f..cdbef4f 100755 (executable)
@@ -307,7 +307,7 @@ void updateEasySetupResource(OCEntityHandlerRequest* ehRequest, OCRepPayload* in
         if (!connectRequest)
         {
             OIC_LOG(ERROR, ES_RH_TAG, "Failed to allocate Payload");
-            return NULL;
+            return;
         }
 
         int cntRequest = 0;