cl_utils: There is no need for a (dummy) target controller.

Fix for #593.
This commit is contained in:
Uwe Bonnes 2020-03-04 15:26:20 +01:00 committed by UweBonnes
parent 03d84d0d5c
commit 13b9fe1efc
1 changed files with 1 additions and 2 deletions

View File

@ -252,8 +252,7 @@ int cl_execute(BMP_CL_OPTIONS_t *opt)
DEBUG("Given target nummer %d not available\n", opt->opt_target_dev);
return res;
}
struct target_controller tc = {NULL};
target *t = target_attach_n(opt->opt_target_dev, &tc);
target *t = target_attach_n(opt->opt_target_dev, NULL);
if (!t) {
DEBUG("Can not attach to target %d\n", opt->opt_target_dev);
goto target_detach;