Skip to content
Snippets Groups Projects
Commit 793cf6d9 authored by Deucе's avatar Deucе :ok_hand_tone4:
Browse files

Don't bother checking the impossible.

parent a068d469
No related branches found
No related tags found
No related merge requests found
Pipeline #7749 passed
......@@ -58,11 +58,13 @@ xp_sem_init(xp_sem_t *sem, int pshared, unsigned int value)
goto RETURN;
}
#if XP_SEM_VALUE_MAX < UINT_MAX
if (value > XP_SEM_VALUE_MAX) {
errno = EINVAL;
retval = -1;
goto RETURN;
}
#endif
*sem = (xp_sem_t)malloc(sizeof(struct xp_sem));
if (*sem == NULL) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment