From: oharboe at B. <oh...@ma...> - 2009-05-08 10:49:24
|
Author: oharboe Date: 2009-05-08 10:49:24 +0200 (Fri, 08 May 2009) New Revision: 1670 Modified: trunk/src/jtag/jtag.c Log: use assert instead of adding code that always runs Modified: trunk/src/jtag/jtag.c =================================================================== --- trunk/src/jtag/jtag.c 2009-05-08 08:46:28 UTC (rev 1669) +++ trunk/src/jtag/jtag.c 2009-05-08 08:49:24 UTC (rev 1670) @@ -41,6 +41,7 @@ #ifdef HAVE_STRINGS_H #include <strings.h> #endif +#include <assert.h> @@ -1453,11 +1454,7 @@ 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) { |