Skip to content

Commit

Permalink
cortexm: Corrected a typo in a NULL check comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
dragonmux committed Sep 27, 2024
1 parent 2a827f1 commit cb7824a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/target/cortexm.c
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,7 @@ static void cortexm_mem_write(target_s *target, target_addr64_t dest, const void

bool target_is_cortexm(const target_s *target)
{
return target == NULL && target->regs_description == cortexm_target_description;
return target != NULL && target->regs_description == cortexm_target_description;
}

uint32_t cortexm_demcr_read(const target_s *target)
Expand Down

0 comments on commit cb7824a

Please sign in to comment.