openocd: fix simple cases of NULL comparison
[fw/openocd] / src / jtag / commands.c
index cafb05b5be9c59a2457685b46d79bc9dee00b233..aacedbd67513678f38fdd16e805be1bccb93ea0b 100644 (file)
@@ -66,7 +66,7 @@ void jtag_queue_command(struct jtag_command *cmd)
        cmd->next = NULL;
 
        struct jtag_command **last_cmd = next_command_pointer;
-       assert(NULL != last_cmd);
+       assert(last_cmd);
        assert(NULL == *last_cmd);
        *last_cmd = cmd;