|
From: openocd-gerrit <ope...@us...> - 2025-04-25 09:45:22
|
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 a9608871692be6cda4d73ae837b4313747370ff8 (commit)
from d29c1c6d6df31f64ae5593babc65cfdffa312def (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 a9608871692be6cda4d73ae837b4313747370ff8
Author: Tomas Vanek <va...@fb...>
Date: Fri Aug 16 22:53:36 2024 +0200
flash/nor/rp2xxx: drop couple of Java-like const
The compiler knows what variable remains constant during its lifetime
and there is no need to emphasise constantness.
Change-Id: Ib515f96a3c77afea87274f33b8ccac7a71bfb932
Signed-off-by: Tomas Vanek <va...@fb...>
Reviewed-on: https://review.openocd.org/c/openocd/+/8459
Tested-by: jenkins
Reviewed-by: Jonathan Bell <jon...@ra...>
diff --git a/src/flash/nor/rp2xxx.c b/src/flash/nor/rp2xxx.c
index 909d3f14d..5d0255b61 100644
--- a/src/flash/nor/rp2xxx.c
+++ b/src/flash/nor/rp2xxx.c
@@ -223,7 +223,7 @@ static int rp2040_lookup_rom_symbol(struct target *target, uint16_t tag, uint16_
}
uint16_t ptr_to_entry;
- const unsigned int offset_magic_to_table_ptr = flags == RT_FLAG_DATA ? 6 : 4;
+ unsigned int offset_magic_to_table_ptr = flags == RT_FLAG_DATA ? 6 : 4;
int err = target_read_u16(target, BOOTROM_MAGIC_ADDR + offset_magic_to_table_ptr, &ptr_to_entry);
if (err != ERROR_OK)
return err;
@@ -390,8 +390,8 @@ static int rp2xxx_lookup_rom_symbol(struct target *target, uint16_t tag, uint16_
static int rp2xxx_populate_rom_pointer_cache(struct target *target, struct rp2xxx_flash_bank *priv)
{
- const uint16_t symtype_func = is_arm(target_to_arm(target))
- ? RT_FLAG_FUNC_ARM_SEC : RT_FLAG_FUNC_RISCV;
+ uint16_t symtype_func = is_arm(target_to_arm(target))
+ ? RT_FLAG_FUNC_ARM_SEC : RT_FLAG_FUNC_RISCV;
int err;
err = rp2xxx_lookup_rom_symbol(target, FUNC_FLASH_EXIT_XIP,
symtype_func, &priv->jump_flash_exit_xip);
-----------------------------------------------------------------------
Summary of changes:
src/flash/nor/rp2xxx.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
hooks/post-receive
--
Main OpenOCD repository
|