diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/target/cortex_m.c | 2 | ||||
-rw-r--r-- | src/target/stm8.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/target/cortex_m.c b/src/target/cortex_m.c index 7f59401b..9a1f2b16 100644 --- a/src/target/cortex_m.c +++ b/src/target/cortex_m.c @@ -919,7 +919,7 @@ static int cortex_m_step(struct target *target, int current, * a normal step, otherwise we have to manually step over the bkpt * instruction - as such simulate a step */ if (bkpt_inst_found == false) { - if ((cortex_m->isrmasking_mode != CORTEX_M_ISRMASK_AUTO)) { + if (cortex_m->isrmasking_mode != CORTEX_M_ISRMASK_AUTO) { /* Automatic ISR masking mode off: Just step over the next * instruction, with interrupts on or off as appropriate. */ cortex_m_set_maskints_for_step(target); diff --git a/src/target/stm8.c b/src/target/stm8.c index 54a4bce2..6b03bb5a 100644 --- a/src/target/stm8.c +++ b/src/target/stm8.c @@ -356,7 +356,7 @@ static int stm8_set_hwbreak(struct target *target, if ((comparator_list[0].type != HWBRK_EXEC) && (comparator_list[1].type != HWBRK_EXEC)) { - if ((comparator_list[0].type != comparator_list[1].type)) { + if (comparator_list[0].type != comparator_list[1].type) { LOG_ERROR("data hw breakpoints must be of same type"); return ERROR_TARGET_RESOURCE_NOT_AVAILABLE; } |