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
/
target
/
hla_target.c
diff --git
a/src/target/hla_target.c
b/src/target/hla_target.c
index 78ec7e885943ee55ccc35393c31837172cbf90b3..91861054f47d2109e060657da8778ce7adf67511 100644
(file)
--- a/
src/target/hla_target.c
+++ b/
src/target/hla_target.c
@@
-202,7
+202,7
@@
static int adapter_target_create(struct target *target,
{
LOG_DEBUG("%s", __func__);
struct adiv5_private_config *pc = target->private_config;
- if (pc
!= NULL
&& pc->ap_num > 0) {
+ if (pc && pc->ap_num > 0) {
LOG_ERROR("hla_target: invalid parameter -ap-num (> 0)");
return ERROR_COMMAND_SYNTAX_ERROR;
}