forked from auracaster/openocd
error handling: the error number is not part of the user interface
Do not propagate error number to user. This is for internal programming purposes only. Error messages to the user is reported as text via LOG_ERROR(). Signed-off-by: Øyvind Harboe <oyvind.harboe@zylin.com>
This commit is contained in:
@@ -325,10 +325,6 @@ static int str7x_result(struct flash_bank *bank)
|
||||
err = ERROR_FAIL;
|
||||
}
|
||||
}
|
||||
if (err != ERROR_OK)
|
||||
{
|
||||
LOG_ERROR("FLASH_ER register contents: 0x%" PRIx32, retval);
|
||||
}
|
||||
|
||||
return retval;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user