This is an automated email from Gerrit. "Mark O'Donovan <[email protected]>" just uploaded a new patch set to Gerrit, which you can find at https://review.openocd.org/c/openocd/+/9496
-- gerrit commit 6f0e4b85db48a3e910477a294d175dcca306637d Author: Mark O'Donovan <[email protected]> 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 <[email protected]> diff --git a/src/flash/nand/core.c b/src/flash/nand/core.c index a79844eb5f..6fe8d4023a 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 --
