Fix for defects detected by static analysis in ca android
authorhyuna0213.jo <hyuna0213.jo@samsung.com>
Thu, 18 Feb 2016 03:08:41 +0000 (12:08 +0900)
committerJon A. Cruz <jonc@osg.samsung.com>
Thu, 18 Feb 2016 19:09:33 +0000 (19:09 +0000)
modify ca android ble client/server to fix defects detected
by static code analysis

Change-Id: I5b48824b03a00b373e07ccc311b7b77f32dd5b77
Signed-off-by: hyuna0213.jo <hyuna0213.jo@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/5035
Reviewed-by: jihwan seo <jihwan.seo@samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Jon A. Cruz <jonc@osg.samsung.com>
resource/csdk/connectivity/src/bt_le_adapter/android/caleserver.c

index 7ebd68a..28daef1 100644 (file)
@@ -2319,7 +2319,7 @@ Java_org_iotivity_ca_CaLeServerInterface_caLeGattServerNotificationSentCallback(
             g_isSignalSetFlag = true;
             ca_cond_signal(g_threadSendNotifyCond);
             ca_mutex_unlock(g_threadSendNotifyMutex);
-            return CA_SEND_FAILED;
+            return;
         }
     }
     else