mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 09:18:00 +08:00
nuttx/drivers: Remove explicity references to errno. That is a problem from within the kernel for certain configurations
This commit is contained in:
+2
-2
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user