[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 3/4] hw/watchdog/wdt_imx2: Remove redundant assignment
From: |
Bernhard Beschow |
Subject: |
[PATCH v2 3/4] hw/watchdog/wdt_imx2: Remove redundant assignment |
Date: |
Sun, 3 Nov 2024 15:33:29 +0100 |
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>
---
hw/watchdog/wdt_imx2.c | 1 -
1 file changed, 1 deletion(-)
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();
}
}
--
2.47.0
- [PATCH v2 0/4] Trivial ARM changes, Bernhard Beschow, 2024/11/03
- [PATCH v2 1/4] hw/rtc/ds1338: Trace send and receive operations, Bernhard Beschow, 2024/11/03
- [PATCH v2 2/4] hw/timer/imx_gpt: Convert DPRINTF to trace events, Bernhard Beschow, 2024/11/03
- [PATCH v2 3/4] hw/watchdog/wdt_imx2: Remove redundant assignment,
Bernhard Beschow <=
- [PATCH v2 4/4] hw/sensor/tmp105: Convert printf() to trace event, add tracing for read/write access, Bernhard Beschow, 2024/11/03
- Re: [PATCH v2 0/4] Trivial ARM changes, Peter Maydell, 2024/11/04