From 13b9fe1efc4a583abb807907bf1622bd66d79559 Mon Sep 17 00:00:00 2001 From: Uwe Bonnes Date: Wed, 4 Mar 2020 15:26:20 +0100 Subject: [PATCH] cl_utils: There is no need for a (dummy) target controller. Fix for #593. --- src/platforms/pc/cl_utils.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/platforms/pc/cl_utils.c b/src/platforms/pc/cl_utils.c index 9f5cf739..e869f617 100644 --- a/src/platforms/pc/cl_utils.c +++ b/src/platforms/pc/cl_utils.c @@ -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;