diff options
Diffstat (limited to 'src/target/target_request.c')
-rw-r--r-- | src/target/target_request.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/target/target_request.c b/src/target/target_request.c index cf588f4..bea9346 100644 --- a/src/target/target_request.c +++ b/src/target/target_request.c @@ -234,7 +234,7 @@ int delete_debug_msg_receiver(struct command_context *cmd_ctx, struct target *ta if (c->cmd_ctx == cmd_ctx) { *p = next; free(c); - if (*p == NULL) { + if (!*p) { /* disable callback */ target->dbg_msg_enabled = 0; } @@ -256,7 +256,7 @@ COMMAND_HANDLER(handle_target_request_debugmsgs_command) int receiving = 0; - if (target->type->target_request_data == NULL) { + if (!target->type->target_request_data) { LOG_ERROR("Target %s does not support target requests", target_name(target)); return ERROR_OK; } |