openocd: remove NULL comparisons with checkpatch [2/2]
[fw/openocd] / src / openocd.c
index 2eb7346c5705b036de3329119fcefa946937d104..2c94666243d724e8961d30b4e5f6b711a1c23e13 100644 (file)
@@ -262,7 +262,7 @@ static struct command_context *setup_command_handler(Jim_Interp *interp)
                &arm_tpiu_swo_register_commands,
                NULL
        };
-       for (unsigned i = 0; NULL != command_registrants[i]; i++) {
+       for (unsigned i = 0; command_registrants[i]; i++) {
                int retval = (*command_registrants[i])(cmd_ctx);
                if (retval != ERROR_OK) {
                        command_done(cmd_ctx);