From 6e72308ac5d4345435a28a6d794549bf98289d9a Mon Sep 17 00:00:00 2001 From: Avi Date: Tue, 8 Nov 2022 14:47:51 +1000 Subject: [PATCH] Fix #1110, Modify unreachable branch in OS_ObjectIdAllocateNew --- src/os/shared/src/osapi-idmap.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/os/shared/src/osapi-idmap.c b/src/os/shared/src/osapi-idmap.c index 142875992..24645bda2 100644 --- a/src/os/shared/src/osapi-idmap.c +++ b/src/os/shared/src/osapi-idmap.c @@ -1191,8 +1191,7 @@ int32 OS_ObjectIdAllocateNew(osal_objtype_t idtype, const char *name, OS_object_ OS_ObjectIdTransactionCancel(token); return return_code; } - - if (return_code == OS_SUCCESS) + else { return_code = OS_NotifyEvent(OS_EVENT_RESOURCE_ALLOCATED, token->obj_id, NULL); }