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
/
jtagspi.c
diff --git
a/src/flash/nor/jtagspi.c
b/src/flash/nor/jtagspi.c
index fade970afbc37c648a10772f6f2c964dc8b1298a..dc49fda6153ddf31e2b97c820cc58d5c42e48c7d 100644
(file)
--- a/
src/flash/nor/jtagspi.c
+++ b/
src/flash/nor/jtagspi.c
@@
-172,7
+172,7
@@
static int jtagspi_probe(struct flash_bank *bank)
free(bank->sectors);
info->probed = false;
- if (
bank->target->tap == NULL
) {
+ if (
!bank->target->tap
) {
LOG_ERROR("Target has no JTAG tap");
return ERROR_FAIL;
}