Skip to content

Commit

Permalink
Fix #1110, Modify unreachable branch in OS_ObjectIdAllocateNew
Browse files Browse the repository at this point in the history
  • Loading branch information
thnkslprpt committed Nov 8, 2022
1 parent 4567e8b commit 6e72308
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/os/shared/src/osapi-idmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 6e72308

Please sign in to comment.