Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

watchdog: meson: 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@caione.org>
Reviewed-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Wim Van Sebroeck <wim@iguana.be>

authored by

Carlo Caione and committed by
Wim Van Sebroeck
06980b24 71fd380a

+1 -1
+1 -1
drivers/watchdog/meson_wdt.c
··· 51 51 static int meson_restart_handle(struct notifier_block *this, unsigned long mode, 52 52 void *cmd) 53 53 { 54 - u32 tc_reboot = MESON_WDT_DC_RESET | MESON_WDT_TC_EN | 100; 54 + u32 tc_reboot = MESON_WDT_DC_RESET | MESON_WDT_TC_EN; 55 55 struct meson_wdt_dev *meson_wdt = container_of(this, 56 56 struct meson_wdt_dev, 57 57 restart_handler);