nuttx/drivers: Remove explicity references to errno. That is a problem from within the kernel for certain configurations

This commit is contained in:
Gregory Nutt
2014-08-28 16:59:06 -06:00
parent 220216cc38
commit 98cf3b06e5
8 changed files with 34 additions and 34 deletions
+2 -2
View File
@@ -148,7 +148,7 @@ static int timer_open(FAR struct file *filep)
ret = 1; //sem_wait(&upper->exclsem);
if (ret < 0)
{
ret = -errno;
ret = -get_errno();
goto errout;
}
@@ -199,7 +199,7 @@ static int timer_close(FAR struct file *filep)
ret = 1; //sem_wait(&upper->exclsem);
if (ret < 0)
{
ret = -errno;
ret = -get_errno();
goto errout;
}