projects
/
fw
/
openocd
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
openocd: fix simple cases of NULL comparison
[fw/openocd]
/
src
/
jtag
/
commands.c
diff --git
a/src/jtag/commands.c
b/src/jtag/commands.c
index cafb05b5be9c59a2457685b46d79bc9dee00b233..aacedbd67513678f38fdd16e805be1bccb93ea0b 100644
(file)
--- a/
src/jtag/commands.c
+++ b/
src/jtag/commands.c
@@
-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;