mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 16:50:55 +08:00
Fix a logic error in last change to sem_tickwait()
This commit is contained in:
+1
-1
Submodule arch updated: d99e8ced38...098a35f7dd
@@ -138,7 +138,8 @@ int sem_tickwait(FAR sem_t *sem, uint32_t start, uint32_t delay)
|
||||
elapsed = clock_systimer() - start;
|
||||
if (elapsed >= (UINT32_MAX / 2) || elapsed >= delay)
|
||||
{
|
||||
return -ETIMEDOUT;
|
||||
ret = -ETIMEDOUT;
|
||||
goto errout_with_irqdisabled;
|
||||
}
|
||||
|
||||
delay -= elapsed;
|
||||
|
||||
Reference in New Issue
Block a user