watchdog: meson: remove magic value for reboot
authorCarlo Caione <carlo@caione.org>
Thu, 9 Oct 2014 19:59:16 +0000 (21:59 +0200)
committerWim Van Sebroeck <wim@iguana.be>
Mon, 20 Oct 2014 19:09:17 +0000 (21:09 +0200)
This patch removes the magic value used for rebooting the board. This
value is useless and leads to a static checker warning as reported by
Dan Carpenter.

Signed-off-by: Carlo Caione <carlo@caione.org>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>
drivers/watchdog/meson_wdt.c

index 37f9f5e..ef6a298 100644 (file)
@@ -51,7 +51,7 @@ struct meson_wdt_dev {
 static int meson_restart_handle(struct notifier_block *this, unsigned long mode,
                                void *cmd)
 {
-       u32 tc_reboot = MESON_WDT_DC_RESET | MESON_WDT_TC_EN | 100;
+       u32 tc_reboot = MESON_WDT_DC_RESET | MESON_WDT_TC_EN;
        struct meson_wdt_dev *meson_wdt = container_of(this,
                                                       struct meson_wdt_dev,
                                                       restart_handler);