aboutsummaryrefslogtreecommitdiff
path: root/src/include/target.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/target.h')
-rw-r--r--src/include/target.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/target.h b/src/include/target.h
index aa20f39..030b41e 100644
--- a/src/include/target.h
+++ b/src/include/target.h
@@ -96,7 +96,7 @@
#define target_check_hw_wp(target, addr) \
- (target)->check_hw_wp((target), (addr))
+ ((target)->check_hw_wp?(target)->check_hw_wp((target), (addr)):0)
/* Flash memory access functions */