|
From: openocd-gerrit <ope...@us...> - 2026-04-06 16:22:39
|
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 4e23bf155f8e132f90720dfdcca77835934efddb (commit)
from e4c49d86052dfc241ec60bbd3b7e190307891722 (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 4e23bf155f8e132f90720dfdcca77835934efddb
Author: Mark O'Donovan <sh...@po...>
Date: Tue Feb 24 20:32:02 2026 +0000
flash/nand/core: remove redundant NULL check
The value p can never be NULL here.
Found by cppcheck.
Change-Id: I2947b46e714c365021a945705f71d099168d30f4
Signed-off-by: Mark O'Donovan <sh...@po...>
Reviewed-on: https://review.openocd.org/c/openocd/+/9496
Tested-by: jenkins
Reviewed-by: Antonio Borneo <bor...@gm...>
diff --git a/src/flash/nand/core.c b/src/flash/nand/core.c
index a79844eb5..6fe8d4023 100644
--- a/src/flash/nand/core.c
+++ b/src/flash/nand/core.c
@@ -21,7 +21,7 @@ void nand_device_add(struct nand_device *c)
{
if (nand_devices) {
struct nand_device *p = nand_devices;
- while (p && p->next)
+ while (p->next)
p = p->next;
p->next = c;
} else
-----------------------------------------------------------------------
Summary of changes:
src/flash/nand/core.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
hooks/post-receive
--
Main OpenOCD repository
|