X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=src%2Frtos%2Fmqx.c;h=f6be35b6cc57ed6aa2f5b70b854c9bbd543ea3f5;hb=08ee7bb982b16742f52cfdc6c649d82ffa2eb177;hp=9f59c6d7ccd1a26b68dce5e457b9cb23b375bfcd;hpb=b159f5cdedd70fff9309722e927be670845f4df5;p=fw%2Fopenocd diff --git a/src/rtos/mqx.c b/src/rtos/mqx.c index 9f59c6d7c..f6be35b6c 100644 --- a/src/rtos/mqx.c +++ b/src/rtos/mqx.c @@ -318,7 +318,7 @@ static int mqx_update_threads( rtos->thread_count = task_queue_size; rtos->current_thread = 0; rtos->thread_details = calloc(rtos->thread_count, sizeof(struct thread_detail)); - if (NULL == rtos->thread_details) + if (!rtos->thread_details) return ERROR_FAIL; /* loop over each task and setup thread details,