mirror of
https://github.com/apache/nuttx.git
synced 2026-06-05 15:58:59 +08:00
More fixes to problems noted by cppcheck. Some are kind of risky; some are real bugs.
This commit is contained in:
@@ -149,9 +149,7 @@ static void incr_base62(void)
|
||||
|
||||
static void get_base62(FAR uint8_t *ptr)
|
||||
{
|
||||
int ret;
|
||||
|
||||
while ((ret = sem_wait(&g_b62sem)) < 0)
|
||||
while (sem_wait(&g_b62sem) < 0)
|
||||
{
|
||||
DEBUGASSERT(errno == EINTR);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user