aboutsummaryrefslogtreecommitdiff
path: root/src/target/hla_target.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/target/hla_target.c')
-rw-r--r--src/target/hla_target.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/target/hla_target.c b/src/target/hla_target.c
index d9de2d3..78ec7e8 100644
--- a/src/target/hla_target.c
+++ b/src/target/hla_target.c
@@ -208,7 +208,7 @@ static int adapter_target_create(struct target *target,
}
struct cortex_m_common *cortex_m = calloc(1, sizeof(struct cortex_m_common));
- if (cortex_m == NULL) {
+ if (!cortex_m) {
LOG_ERROR("No memory creating target");
return ERROR_FAIL;
}