aboutsummaryrefslogtreecommitdiff
path: root/hw/watchdog
diff options
context:
space:
mode:
authorBernhard Beschow <shentey@gmail.com>2024-11-05 10:10:00 +0000
committerPeter Maydell <peter.maydell@linaro.org>2024-11-05 10:10:00 +0000
commitfe06088b3c5b3bd1a31b499db38b9542deaa2a3e (patch)
tree14a38ef02d412395aaf11801d0db4a69f7ef9eb8 /hw/watchdog
parentafd431e45aac6d0e3529ca2ea02d77be90f14397 (diff)
hw/watchdog/wdt_imx2: Remove redundant assignment
The same statement is executed unconditionally right before the if statement. Cc: Guenter Roeck <linux@roeck-us.net> Reviewed-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Bernhard Beschow <shentey@gmail.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-id: 20241103143330.123596-4-shentey@gmail.com Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'hw/watchdog')
-rw-r--r--hw/watchdog/wdt_imx2.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/hw/watchdog/wdt_imx2.c b/hw/watchdog/wdt_imx2.c
index be63d421da..8162d58afa 100644
--- a/hw/watchdog/wdt_imx2.c
+++ b/hw/watchdog/wdt_imx2.c
@@ -39,7 +39,6 @@ static void imx2_wdt_expired(void *opaque)
/* Perform watchdog action if watchdog is enabled */
if (s->wcr & IMX2_WDT_WCR_WDE) {
- s->wrsr = IMX2_WDT_WRSR_TOUT;
watchdog_perform_action();
}
}