Skip to content

Commit

Permalink
sched/wdog: Fix code style
Browse files Browse the repository at this point in the history
This commit fixed code style issue left by the previous patch.

Signed-off-by: ouyangxiangzhen <ouyangxiangzhen@xiaomi.com>
  • Loading branch information
Fix-Point committed Oct 10, 2024
1 parent 2f26323 commit b867962
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions sched/wdog/wd_cancel.c
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@ int wd_cancel(FAR struct wdog_s *wdog)

int wd_cancel_irq(FAR struct wdog_s *wdog)
{
bool head;

/* Make sure that the watchdog is valid and still active. */

if (wdog == NULL || !WDOG_ISACTIVE(wdog))
{
return -EINVAL;
Expand All @@ -103,9 +107,7 @@ int wd_cancel_irq(FAR struct wdog_s *wdog)
* cancellation is complete
*/

/* Make sure that the watchdog is still active. */

bool head = list_is_head(&g_wdactivelist, &wdog->node);
head = list_is_head(&g_wdactivelist, &wdog->node);

/* Now, remove the watchdog from the timer queue */

Expand Down

0 comments on commit b867962

Please sign in to comment.