irqchip: sunxi: Make use of the IRQCHIP_DECLARE macro
[deliverable/linux.git] / drivers / watchdog / watchdog_dev.c
index ef8edecfc526cedaa27bb22b23a2729289221f1b..08b48bbf9f4b2d3c65cf18045ff90c1465c9787f 100644 (file)
@@ -200,8 +200,7 @@ static int watchdog_set_timeout(struct watchdog_device *wddev,
            !(wddev->info->options & WDIOF_SETTIMEOUT))
                return -EOPNOTSUPP;
 
-       if ((wddev->max_timeout != 0) &&
-           (timeout < wddev->min_timeout || timeout > wddev->max_timeout))
+       if (watchdog_timeout_invalid(wddev, timeout))
                return -EINVAL;
 
        mutex_lock(&wddev->lock);
This page took 0.026162 seconds and 5 git commands to generate.