mirror of
https://github.com/linux-msm/openocd.git
synced 2026-02-25 13:15:07 -08:00
use assert instead of adding code that always runs
git-svn-id: svn://svn.berlios.de/openocd/trunk@1670 b42882b7-edfa-0310-969c-e2dbd0fdcd60
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user