Revert "sched/wdog/wd_cancel: Return 0 (OK) when cancelling an inactive wdog"
This reverts commit c28c14ad26.
This commit is contained in:
parent
f57a5a6802
commit
466525891d
1 changed files with 1 additions and 1 deletions
|
|
@ -70,7 +70,7 @@ int wd_cancel(FAR struct wdog_s *wdog)
|
||||||
if (wdog == NULL || !WDOG_ISACTIVE(wdog))
|
if (wdog == NULL || !WDOG_ISACTIVE(wdog))
|
||||||
{
|
{
|
||||||
spin_unlock_irqrestore(&g_wdspinlock, flags);
|
spin_unlock_irqrestore(&g_wdspinlock, flags);
|
||||||
return wdog == NULL ? -EINVAL : 0;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
sched_note_wdog(NOTE_WDOG_CANCEL, (FAR void *)wdog->func,
|
sched_note_wdog(NOTE_WDOG_CANCEL, (FAR void *)wdog->func,
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue