mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 16:50:55 +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:
@@ -607,7 +607,8 @@ static void ads7843e_worker(FAR void *arg)
|
||||
* later.
|
||||
*/
|
||||
|
||||
wd_start(priv->wdog, ADS7843E_WDOG_DELAY, ads7843e_wdog, 1, (uint32_t)priv);
|
||||
(void)wd_start(priv->wdog, ADS7843E_WDOG_DELAY, ads7843e_wdog, 1,
|
||||
(uint32_t)priv);
|
||||
goto ignored;
|
||||
}
|
||||
else
|
||||
|
||||
@@ -592,8 +592,8 @@ static void max11802_worker(FAR void *arg)
|
||||
|
||||
iinfo("Previous pen up event still in buffer\n");
|
||||
max11802_notify(priv);
|
||||
wd_start(priv->wdog, MAX11802_WDOG_DELAY, max11802_wdog, 1,
|
||||
(uint32_t)priv);
|
||||
(void)wd_start(priv->wdog, MAX11802_WDOG_DELAY, max11802_wdog, 1,
|
||||
(uint32_t)priv);
|
||||
goto ignored;
|
||||
}
|
||||
else
|
||||
@@ -632,8 +632,8 @@ static void max11802_worker(FAR void *arg)
|
||||
|
||||
/* Continue to sample the position while the pen is down */
|
||||
|
||||
wd_start(priv->wdog, MAX11802_WDOG_DELAY, max11802_wdog, 1,
|
||||
(uint32_t)priv);
|
||||
(void)wd_start(priv->wdog, MAX11802_WDOG_DELAY, max11802_wdog, 1,
|
||||
i (uint32_t)priv);
|
||||
|
||||
/* Check if data is valid */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user