target: Cleanup in target_new() for the check_error callback

This commit is contained in:
dragonmux 2022-01-21 21:41:37 -05:00 committed by Piotr Esden-Tempski
parent 361dc9c234
commit 23534ab174
1 changed files with 3 additions and 3 deletions

View File

@ -34,9 +34,9 @@ static bool nop_function(void)
return true;
}
static int null_function(void)
static bool false_function(void)
{
return 0;
return false;
}
target *target_new(void)
@ -68,7 +68,7 @@ target *target_new(void)
t->halt_request = (void*)nop_function;
t->halt_poll = (void*)nop_function;
t->halt_resume = (void*)nop_function;
t->check_error = (void*)null_function;
t->check_error = (void*)false_function;
t->target_storage = NULL;