From: openocd-gerrit <ope...@us...> - 2025-02-21 21:22:09
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "Main OpenOCD repository". The branch, master has been updated via 0d7d178ed4fe2e99de804412fde9bb11c872f10a (commit) from 583506730d00cd88d2b8741993fa604c43a71658 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit 0d7d178ed4fe2e99de804412fde9bb11c872f10a Author: Evgeniy Naydanov <evg...@sy...> Date: Wed Feb 12 21:12:30 2025 +0300 flash/nor/rsl10: drop unused `rsl10_info` in `rsl10_protect_check()` `struct rsl10_info *chip` is only used in `rsl10_protect_check()` in an assertion triggerring `-Wunused-variable` when compiled with `DNDEBUG`. Drop it. Change-Id: Ib302aea742131479f04f32e8fe8a88a3230ae203 Signed-off-by: Evgeniy Naydanov <evg...@sy...> Reviewed-on: https://review.openocd.org/c/openocd/+/8755 Tested-by: jenkins Reviewed-by: Tomas Vanek <va...@fb...> diff --git a/src/flash/nor/rsl10.c b/src/flash/nor/rsl10.c index c286e9ac8..c33099787 100644 --- a/src/flash/nor/rsl10.c +++ b/src/flash/nor/rsl10.c @@ -155,11 +155,6 @@ static int rsl10_get_probed_chip_if_halted(struct flash_bank *bank, struct rsl10 static int rsl10_protect_check(struct flash_bank *bank) { - struct rsl10_bank *nbank = bank->driver_priv; - struct rsl10_info *chip = nbank->chip; - - assert(chip); - uint32_t status; int retval = target_read_u32(bank->target, RSL10_FLASH_REG_IF_STATUS, &status); ----------------------------------------------------------------------- Summary of changes: src/flash/nor/rsl10.c | 5 ----- 1 file changed, 5 deletions(-) hooks/post-receive -- Main OpenOCD repository |