Skip to content

Commit

Permalink
watchdog: meson: remove magic value for reboot
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Carlo Caione authored and Wim Van Sebroeck committed Oct 20, 2014
1 parent 71fd380 commit 06980b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/watchdog/meson_wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 06980b2

Please sign in to comment.