|
From: openocd-gerrit <ope...@us...> - 2026-09-19 06:26:25
|
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 8056a09f1d065bbb5207a44d4bbdd39d2e6f729d (commit)
from c2fc07b7df9d4cc38c2e8c12177568ec4b80112a (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 8056a09f1d065bbb5207a44d4bbdd39d2e6f729d
Author: Tomas Vanek <va...@fb...>
Date: Wed Sep 2 18:57:47 2026 +0200
flash/nor/swm050: remove useless free()
In the probe code free(bank->sectors) serves for re-probing.
This simple flash driver has a stub probe and bank->sectors
are allocated once in
FLASH_BANK_COMMAND_HANDLER(swm050_flash_bank_command)
Change-Id: Ic2ddc77235cdeca3bd6e15d2a3f2e8f019346603
Signed-off-by: Tomas Vanek <va...@fb...>
Reviewed-on: https://review.openocd.org/c/openocd/+/9931
Tested-by: jenkins
Reviewed-by: Antonio Borneo <bor...@gm...>
Reviewed-by: Tomas Vanek <tom...@gm...>
diff --git a/src/flash/nor/swm050.c b/src/flash/nor/swm050.c
index 880c44e19..9784c9a8c 100644
--- a/src/flash/nor/swm050.c
+++ b/src/flash/nor/swm050.c
@@ -144,7 +144,6 @@ COMMAND_HANDLER(swm050_handle_mass_erase_command)
FLASH_BANK_COMMAND_HANDLER(swm050_flash_bank_command)
{
- free(bank->sectors);
bank->write_start_alignment = 4;
bank->write_end_alignment = 4;
bank->size = SWM050_FLASH_PAGE_SIZE * SWM050_FLASH_PAGES;
-----------------------------------------------------------------------
Summary of changes:
src/flash/nor/swm050.c | 1 -
1 file changed, 1 deletion(-)
hooks/post-receive
--
Main OpenOCD repository
|