openocd: remove NULL comparisons with checkpatch [1/2]
[fw/openocd] / src / rtos / ThreadX.c
index c7effe79f961345d1486187a761e722fc8616989..788edc0b4c3af252a2518f455e114e42a9fc70a6 100644 (file)
@@ -491,7 +491,7 @@ static int threadx_get_symbol_list_to_lookup(struct symbol_table_elem *symbol_li
 
 static bool threadx_detect_rtos(struct target *target)
 {
-       if ((target->rtos->symbols != NULL) &&
+       if ((target->rtos->symbols) &&
                        (target->rtos->symbols[THREADX_VAL_TX_THREAD_CREATED_PTR].address != 0)) {
                /* looks like ThreadX */
                return true;