openocd: fix simple cases of NULL comparison
[fw/openocd] / src / rtos / mqx.c
index 9f59c6d7ccd1a26b68dce5e457b9cb23b375bfcd..f6be35b6cc57ed6aa2f5b70b854c9bbd543ea3f5 100644 (file)
@@ -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,