openocd: use single line for register_commands*()
[fw/openocd] / src / jtag / commands.c
index cafb05b5be9c59a2457685b46d79bc9dee00b233..206c5e8f5290f1f2ac7b9f5b1c1327721b321c8a 100644 (file)
@@ -66,8 +66,8 @@ void jtag_queue_command(struct jtag_command *cmd)
        cmd->next = NULL;
 
        struct jtag_command **last_cmd = next_command_pointer;
-       assert(NULL != last_cmd);
-       assert(NULL == *last_cmd);
+       assert(last_cmd);
+       assert(!*last_cmd);
        *last_cmd = cmd;
 
        /* store location where the next command pointer will be stored */