mirror of
https://github.com/linux-msm/cdba.git
synced 2026-02-25 13:11:56 -08:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user