hw/watchdog/wdt_imx2: Remove redundant assignment
authorBernhard Beschow <shentey@gmail.com>
Tue, 5 Nov 2024 10:10:00 +0000 (10:10 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Tue, 5 Nov 2024 10:10:00 +0000 (10:10 +0000)
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>
hw/watchdog/wdt_imx2.c

index be63d421da1856bbb370e6c7f6623a438497f680..8162d58afaf48bedf3dd3a7d8c491108211402e9 100644 (file)
@@ -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();
     }
 }