mirror of
https://github.com/apache/nuttx.git
synced 2026-06-05 07:12:54 +08:00
sched/wdog: wd_start() is an internal OS function and should not set the errno value. Reviewed and updated every call to wd_start() to verify if return value is used and if so if the errno value is accessed.
This commit is contained in:
@@ -303,11 +303,8 @@ static int automount_unmount(FAR struct automounter_state_s *priv)
|
||||
(uint32_t)((uintptr_t)priv));
|
||||
if (ret < 0)
|
||||
{
|
||||
errcode = get_errno();
|
||||
DEBUGASSERT(errcode > 0);
|
||||
|
||||
ferr("ERROR: wd_start failed: %d\n", errcode);
|
||||
return -ret;
|
||||
ferr("ERROR: wd_start failed: %d\n", ret);
|
||||
return ret;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user