openocd: remove last NULL comparisons
[fw/openocd] / src / target / armv8_cache.c
index b668b84220fa28084b1c860834f6de64468d2e75..f05ac07cd6dca2c6b705008138fc9097bcac02ce 100644 (file)
@@ -252,7 +252,7 @@ static int  armv8_flush_all_data(struct target *target)
                struct target_list *head;
                struct target *curr;
                head = target->head;
-               while (head != (struct target_list *)NULL) {
+               while (head) {
                        curr = head->target;
                        if (curr->state == TARGET_HALTED) {
                                LOG_INFO("Wait flushing data l1 on core %" PRId32, curr->coreid);