X-Git-Url: https://review.openocd.org/gitweb?a=blobdiff_plain;f=src%2Ftarget%2Farc.c;h=4b546c3b4d414fb90a12a2e7848d60fc246a82ff;hb=391782318723915bd259eadf9469251c13c8fa9c;hp=1e8a515192147737b133b96c27dbacd0b679fac2;hpb=08ee7bb982b16742f52cfdc6c649d82ffa2eb177;p=openocd.git diff --git a/src/target/arc.c b/src/target/arc.c index 1e8a515192..4b546c3b4d 100644 --- 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; - watchpoint != NULL; + watchpoint; watchpoint = watchpoint->next) { if (actionpoint->bp_value == watchpoint->address) { *hit_watchpoint = watchpoint;