openocd: remove NULL comparisons with checkpatch [1/2]
[fw/openocd] / src / target / semihosting_common.c
index fa639038d1dadab416e2079a3f51afaf9d6cc589..5c96e1cd666236061eda2c078142c9e81258f48b 100644 (file)
@@ -516,7 +516,7 @@ int semihosting_common(struct target *target)
                                uint64_t addr = semihosting_get_field(target, 0, fields);
                                size_t size = semihosting_get_field(target, 1, fields);
 
-                               char *arg = semihosting->cmdline != NULL ?
+                               char *arg = semihosting->cmdline ?
                                        semihosting->cmdline : "";
                                uint32_t len = strlen(arg) + 1;
                                if (len > size)