More fixes to problems noted by cppcheck. Some are kind of risky; some are real bugs.

This commit is contained in:
Gregory Nutt
2014-11-25 13:46:14 -06:00
parent 2994448d85
commit 9ac09db800
14 changed files with 38 additions and 28 deletions
+1 -3
View File
@@ -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);
}