From 1dea9ab41f988c5173325521b1e9b75274a785da Mon Sep 17 00:00:00 2001 From: Antonio Borneo Date: Wed, 2 Nov 2022 23:11:19 +0100 Subject: [PATCH] flash: stmqspi: fix clang error 'dead assignment' The variable retval is assigned a value that is never used, as it is reassigned few lines below. Drop the dead assignment. Change-Id: Id4e9134408fab3e04936d36e95724bf8d3ab55aa Signed-off-by: Antonio Borneo Reviewed-on: https://review.openocd.org/c/openocd/+/7304 Tested-by: jenkins --- src/flash/nor/stmqspi.c | 1 - 1 file changed, 1 deletion(-) diff --git a/src/flash/nor/stmqspi.c b/src/flash/nor/stmqspi.c index 9c266e91a..e5df3b9e0 100644 --- a/src/flash/nor/stmqspi.c +++ b/src/flash/nor/stmqspi.c @@ -1799,7 +1799,6 @@ static int find_sfdp_dummy(struct flash_bank *bank, int len) } } - retval = ERROR_FAIL; LOG_DEBUG("no start of SFDP header even after %u dummy bytes", count); err: