nowayout is a global variable set by module parameter, remove the nowayout useless copy.
Signed-off-by: Sylvain Rochet <sylvain.roc...@finsecur.com> --- drivers/watchdog/at91sam9_wdt.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/watchdog/at91sam9_wdt.c b/drivers/watchdog/at91sam9_wdt.c index 2c506e0..8629f48 100644 --- a/drivers/watchdog/at91sam9_wdt.c +++ b/drivers/watchdog/at91sam9_wdt.c @@ -86,7 +86,6 @@ struct at91wdt { u32 mr; u32 mr_mask; unsigned long heartbeat; /* WDT heartbeat in jiffies */ - bool nowayout; unsigned int irq; struct clk *sclk; }; @@ -233,7 +232,7 @@ static int at91_wdt_init(struct platform_device *pdev, struct at91wdt *wdt) /* Try to set timeout from device tree first */ if (watchdog_init_timeout(&wdt->wdd, 0, dev)) watchdog_init_timeout(&wdt->wdd, wdt_timeout, dev); - watchdog_set_nowayout(&wdt->wdd, wdt->nowayout); + watchdog_set_nowayout(&wdt->wdd, nowayout); err = watchdog_register_device(&wdt->wdd); if (err) goto out_stop_timer; @@ -338,7 +337,6 @@ static int __init at91wdt_probe(struct platform_device *pdev) wdt->mr = (WDT_HW_TIMEOUT * 256) | AT91_WDT_WDRSTEN | AT91_WDT_WDD | AT91_WDT_WDDBGHLT; wdt->mr_mask = 0x3FFFFFFF; - wdt->nowayout = nowayout; wdt->wdd.parent = &pdev->dev; wdt->wdd.info = &at91_wdt_info; wdt->wdd.ops = &at91_wdt_ops; @@ -376,7 +374,7 @@ static int __init at91wdt_probe(struct platform_device *pdev) platform_set_drvdata(pdev, wdt); pr_info("initialized (timeout=%d sec, nowayout=%d)\n", - wdt->wdd.timeout, wdt->nowayout); + wdt->wdd.timeout, nowayout); return 0; -- 2.5.1 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/