cdba-server: don't try opening the board if there is none

If the cdba failed to find the board, don't call device_fastboot_open().

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
This commit is contained in:
Dmitry Baryshkov
2025-02-21 19:14:49 +02:00
parent 61babbf9ac
commit 9335390898

View File

@@ -59,10 +59,10 @@ static void msg_select_board(const void *param)
if (!selected_device) {
fprintf(stderr, "failed to open %s\n", (const char *)param);
watch_quit();
} else {
device_fastboot_open(selected_device, &fastboot_ops);
}
device_fastboot_open(selected_device, &fastboot_ops);
cdba_send(MSG_SELECT_BOARD);
}