From: Bernhard Beschow Date: Tue, 5 Nov 2024 10:10:00 +0000 (+0000) Subject: hw/watchdog/wdt_imx2: Remove redundant assignment X-Git-Tag: v9.2.0-rc0~15^2~3 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fe06088b3c5b3bd1a31b499db38b9542deaa2a3e;p=thirdparty%2Fqemu.git hw/watchdog/wdt_imx2: Remove redundant assignment The same statement is executed unconditionally right before the if statement. Cc: Guenter Roeck Reviewed-by: Guenter Roeck Signed-off-by: Bernhard Beschow Reviewed-by: Richard Henderson Message-id: 20241103143330.123596-4-shentey@gmail.com Signed-off-by: Peter Maydell --- diff --git a/hw/watchdog/wdt_imx2.c b/hw/watchdog/wdt_imx2.c index be63d421da1..8162d58afaf 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(); } }