Ensure Cortex-M reset wakes device from sleep (wfi/wfe)
[fw/openocd] / src / target / armv7a.c
index 48fdf8b3cde36879caca7b882b488aaecdf9d806..e95e99b07b32cf1e655166137bc0fc41fbdbccfa 100644 (file)
@@ -387,7 +387,7 @@ static int  armv7a_flush_all_data(struct target *target)
                head = target->head;
                while (head != (struct target_list *)NULL) {
                        curr = head->target;
-                       if ((curr->state == TARGET_HALTED)) {
+                       if (curr->state == TARGET_HALTED) {
                                LOG_INFO("Wait flushing data l1 on core %d", curr->coreid);
                                retval = _armv7a_flush_all_data(curr);
                        }