openocd: remove NULL comparisons with checkpatch [1/2]
[fw/openocd] / src / target / arc.c
index 1e8a515192147737b133b96c27dbacd0b679fac2..4b546c3b4d414fb90a12a2e7848d60fc246a82ff 100644 (file)
@@ -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;