projects
/
fw
/
openocd
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
openocd: manually remove NULL comparisons
[fw/openocd]
/
src
/
target
/
arc.c
diff --git
a/src/target/arc.c
b/src/target/arc.c
index 1e8a515192147737b133b96c27dbacd0b679fac2..4b546c3b4d414fb90a12a2e7848d60fc246a82ff 100644
(file)
--- a/
src/target/arc.c
+++ b/
src/target/arc.c
@@
-1949,7
+1949,7
@@
static int arc_hit_watchpoint(struct target *target, struct watchpoint **hit_wat
LOG_WARNING("Target halted by breakpoint, but is treated as a watchpoint.");
for (struct watchpoint *watchpoint = target->watchpoints;
LOG_WARNING("Target halted by breakpoint, but is treated as a watchpoint.");
for (struct watchpoint *watchpoint = target->watchpoints;
- watchpoint
!= NULL
;
+ watchpoint;
watchpoint = watchpoint->next) {
if (actionpoint->bp_value == watchpoint->address) {
*hit_watchpoint = watchpoint;
watchpoint = watchpoint->next) {
if (actionpoint->bp_value == watchpoint->address) {
*hit_watchpoint = watchpoint;