This is an automated email from the ASF dual-hosted git repository.

pengzheng pushed a commit to branch hotfix/coverity_fix
in repository https://gitbox.apache.org/repos/asf/celix.git

commit 22d5713ea3a36d1f3a62099e7599478914ce67f8
Author: PengZheng <[email protected]>
AuthorDate: Mon Apr 10 17:50:20 2023 +0800

    Fix Coverity 216563 Logically dead code.
---
 libs/framework/src/bundle_context.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/libs/framework/src/bundle_context.c 
b/libs/framework/src/bundle_context.c
index 68150045..e41ddcc6 100644
--- a/libs/framework/src/bundle_context.c
+++ b/libs/framework/src/bundle_context.c
@@ -936,10 +936,8 @@ static void 
celix_bundleContext_waitForTrackerInternal(celix_bundle_context_t* c
     }
 
     if (found) {
-        if (svcId >= 0 && waitForStart) {
+        if (svcId >= 0) {
             celix_framework_waitForAsyncRegistration(ctx->framework, svcId);
-        } else if (svcId >= 0) {
-            celix_framework_waitForAsyncUnregistration(ctx->framework, svcId);
         } else {
             celix_framework_waitForGenericEvent(ctx->framework, eventId);
         }

Reply via email to