Trivial, cosmetic

This commit is contained in:
Gregory Nutt 2016-12-09 17:20:57 -06:00
parent 113d8bdcca
commit a76e729b0d
1 changed files with 2 additions and 2 deletions

View File

@ -81,7 +81,7 @@ int pthread_cond_wait(FAR pthread_cond_t *cond, FAR pthread_mutex_t *mutex)
/* Make sure that non-NULL references were provided. */ /* Make sure that non-NULL references were provided. */
if (!cond || !mutex) if (cond == NULL || mutex == NULL)
{ {
ret = EINVAL; ret = EINVAL;
} }
@ -111,7 +111,7 @@ int pthread_cond_wait(FAR pthread_cond_t *cond, FAR pthread_mutex_t *mutex)
sinfo("Reacquire mutex...\n"); sinfo("Reacquire mutex...\n");
ret |= pthread_takesemaphore((FAR sem_t *)&mutex->sem); ret |= pthread_takesemaphore((FAR sem_t *)&mutex->sem);
if (!ret) if (ret == OK)
{ {
mutex->pid = getpid(); mutex->pid = getpid();
} }