projects
/
fw
/
openocd
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
openocd: remove NULL comparisons with checkpatch [1/2]
[fw/openocd]
/
src
/
flash
/
nor
/
xcf.c
diff --git
a/src/flash/nor/xcf.c
b/src/flash/nor/xcf.c
index fd31c9d145a9d32c699ad1847cf72da7e0e90c84..c6de1aca11d16ab29bbc642b9e799d3a438a3e84 100644
(file)
--- a/
src/flash/nor/xcf.c
+++ b/
src/flash/nor/xcf.c
@@
-602,7
+602,7
@@
static int xcf_probe(struct flash_bank *bank)
free(bank->sectors);
priv->probed = false;
- if (
bank->target->tap == NULL
) {
+ if (
!bank->target->tap
) {
LOG_ERROR("Target has no JTAG tap");
return ERROR_FAIL;
}