Fix 'return' statements
authorSandeep Sharma <sandeep.s9@samsung.com>
Tue, 8 Nov 2016 07:31:56 +0000 (13:01 +0530)
committerRandeep Singh <randeep.s@samsung.com>
Tue, 8 Nov 2016 10:24:17 +0000 (10:24 +0000)
Fix return statements in OCRegisterTrustCertChainNotifier
and OCRemoveTrustCertChainNotifier API.

Change-Id: Ifd3e19f05d3e4b9f79726d00ed50501d7e4a51b4
Signed-off-by: Sandeep Sharma <sandeep.s9@samsung.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/14103
Reviewed-by: Ashwini Kumar <k.ashwini@samsung.com>
Tested-by: jenkins-iotivity <jenkins-iotivity@opendaylight.org>
Reviewed-by: Randeep Singh <randeep.s@samsung.com>
resource/csdk/security/provisioning/src/ocprovisioningmanager.c

index 549edfd..7246250 100644 (file)
@@ -1299,12 +1299,11 @@ OCStackResult OCSaveTrustCertChain(uint8_t *trustCertChain, size_t chainSize,
  *
  * @param[in] ctx user context.
  * @param[in] TrustCertChainChangeCB notification callback fucntion.
- * @return @return  OC_STACK_OK in case of success and other value otherwise.
+ * @return    OC_STACK_OK in case of success and other value otherwise.
  */
 OCStackResult OCRegisterTrustCertChainNotifier(void *ctx, TrustCertChainChangeCB Callback)
 {
-    SRPRegisterTrustCertChainNotifier(ctx, Callback);
-    return;
+    return SRPRegisterTrustCertChainNotifier(ctx, Callback);
 }
 
 /**
@@ -1312,7 +1311,7 @@ OCStackResult OCRegisterTrustCertChainNotifier(void *ctx, TrustCertChainChangeCB
  */
 void OCRemoveTrustCertChainNotifier()
 {
-    return SRPRemoveTrustCertChainNotifier();
+    SRPRemoveTrustCertChainNotifier();
 }
 #endif // __WITH_DTLS__ || __WITH_TLS__