openocd: remove NULL comparisons with checkpatch [1/2]
[fw/openocd] / src / transport / transport.c
index 5ec8b875458849e2af084e6b78ec37a84c93939b..ba1af339897babf44432b8c66e3821d2774a9d23 100644 (file)
@@ -106,7 +106,7 @@ int allow_transports(struct command_context *ctx, const char * const *vector)
         * of one transport; C code should be definitive about what
         * can be used when all goes well.
         */
-       if (allowed_transports != NULL || session) {
+       if (allowed_transports || session) {
                LOG_ERROR("Can't modify the set of allowed transports.");
                return ERROR_FAIL;
        }