static void lcw_update_time(struct lc_watchdog *lcw, const char *message)
{
- cfs_time_t newtime = cfs_time_current();;
+ cfs_time_t newtime = cfs_time_current();
if (lcw->lcw_state == LC_WATCHDOG_EXPIRED) {
struct timeval timediff;
lc_watchdog_del_pending(lcw);
lcw_update_time(lcw, "resumed");
- lcw->lcw_state = LC_WATCHDOG_ENABLED;
cfs_timer_arm(&lcw->lcw_timer, cfs_time_current() +
cfs_time_seconds(timeout));
+ lcw->lcw_state = LC_WATCHDOG_ENABLED;
EXIT;
}