[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1412884756-20943-1-git-send-email-carlo@caione.org>
Date: Thu, 9 Oct 2014 21:59:16 +0200
From: Carlo Caione <carlo@...one.org>
To: wim@...ana.be, linux-watchdog@...r.kernel.org,
linux-kernel@...r.kernel.org, linux@...ck-us.net,
b.galvani@...il.com
Cc: Carlo Caione <carlo@...one.org>
Subject: [PATCH] ARM: meson: watchdog: remove magic value for reboot
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@...one.org>
---
drivers/watchdog/meson_wdt.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/watchdog/meson_wdt.c b/drivers/watchdog/meson_wdt.c
index 37f9f5ec..ef6a298 100644
--- a/drivers/watchdog/meson_wdt.c
+++ b/drivers/watchdog/meson_wdt.c
@@ -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);
--
1.9.1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists