aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/watchdog/intel_scu_watchdog.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/watchdog/intel_scu_watchdog.c b/drivers/watchdog/intel_scu_watchdog.c
index 33ad728e2fd..ff43e66ed88 100644
--- a/drivers/watchdog/intel_scu_watchdog.c
+++ b/drivers/watchdog/intel_scu_watchdog.c
@@ -448,7 +448,7 @@ static long intel_scu_ioctl(struct file *file,
if (get_user(new_margin, p))
return -EFAULT;
- if (!check_timer_margin(new_margin))
+ if (check_timer_margin(new_margin))
return -EINVAL;
if (intel_scu_set_heartbeat(new_margin))
@@ -506,7 +506,7 @@ static int __init intel_scu_watchdog_init(void)
}
/* Check value of timer_margin boot parameter */
- if (!check_timer_margin(timer_margin))
+ if (check_timer_margin(timer_margin))
return -EINVAL;
watchdog_device.timer_tbl_ptr = sfi_get_mtmr(sfi_mtimer_num-1);