Fix issues detected by clang

This commit is contained in:
Paul A. Patience
2015-09-10 20:59:43 -04:00
parent ed0d480d3e
commit 9f108b7b63
6 changed files with 17 additions and 13 deletions
+5 -1
View File
@@ -179,7 +179,6 @@ int sem_timedwait(FAR sem_t *sem, FAR const struct timespec *abstime)
/* Start the watchdog */
errcode = OK;
(void)wd_start(rtcb->waitdog, ticks, (wdentry_t)sem_timeout, 1, getpid());
/* Now perform the blocking wait */
@@ -196,6 +195,11 @@ int sem_timedwait(FAR sem_t *sem, FAR const struct timespec *abstime)
wd_cancel(rtcb->waitdog);
if (errcode != OK)
{
goto errout_with_irqdisabled;
}
/* We can now restore interrupts and delete the watchdog */
/* Success exits */