openocd: remove NULL comparisons with checkpatch [1/2]
[fw/openocd] / src / rtos / nuttx.c
index 00fec7fb764580d6ef5f5b7c95d5dc7572d700a0..cc352d18008f1e051ea560fcb0884d71beccc0ff 100644 (file)
@@ -233,7 +233,7 @@ retok:
 
 static bool nuttx_detect_rtos(struct target *target)
 {
-       if ((target->rtos->symbols != NULL) &&
+       if ((target->rtos->symbols) &&
                        (target->rtos->symbols[0].address != 0) &&
                        (target->rtos->symbols[1].address != 0)) {
                return true;