diff options
author | oharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-05-08 08:49:24 +0000 |
---|---|---|
committer | oharboe <oharboe@b42882b7-edfa-0310-969c-e2dbd0fdcd60> | 2009-05-08 08:49:24 +0000 |
commit | 84dfdd4de680d2f16275dee2445c5bfcaa363538 (patch) | |
tree | 6c629113cfe95ac016da68b9038c4b77288d01ec /src | |
parent | 4f19ef3cce5fe96114a6e444598d5b6571694e76 (diff) | |
download | openocd_libswd-84dfdd4de680d2f16275dee2445c5bfcaa363538.tar.gz openocd_libswd-84dfdd4de680d2f16275dee2445c5bfcaa363538.tar.bz2 openocd_libswd-84dfdd4de680d2f16275dee2445c5bfcaa363538.tar.xz openocd_libswd-84dfdd4de680d2f16275dee2445c5bfcaa363538.zip |
use assert instead of adding code that always runs
git-svn-id: svn://svn.berlios.de/openocd/trunk@1670 b42882b7-edfa-0310-969c-e2dbd0fdcd60
Diffstat (limited to 'src')
-rw-r--r-- | src/jtag/jtag.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/jtag/jtag.c b/src/jtag/jtag.c index 68706141..e02b91f0 100644 --- a/src/jtag/jtag.c +++ b/src/jtag/jtag.c @@ -41,6 +41,7 @@ #ifdef HAVE_STRINGS_H #include <strings.h> #endif +#include <assert.h> @@ -1453,11 +1454,7 @@ void jtag_set_check_value(scan_field_t *field, u8 *value, u8 *mask, struct inval void jtag_check_value_mask(scan_field_t *field, u8 *value, u8 *mask) { - if (field->in_value==NULL) - { - LOG_ERROR("remember to fill in in_value for jtag_check_value_mask() to work!"); - return; - } + assert(field->in_value != NULL); if (value==NULL) { |