platform/ftdi: Do not double initialize.

This commit is contained in:
Uwe Bonnes 2020-08-03 18:58:27 +02:00 committed by UweBonnes
parent f0b0639189
commit d73a6a3d29
1 changed files with 1 additions and 6 deletions

View File

@ -289,12 +289,7 @@ void platform_init(int argc, char **argv)
}
exit(0);
}
/* check for libftdi devices*/
res = ftdi_bmp_init(&cl_opts, &info);
if (res)
exit(-1);
else
info.bmp_type = BMP_TYPE_LIBFTDI;
info.bmp_type = BMP_TYPE_LIBFTDI;
} else if (find_debuggers(&cl_opts, &info)) {
exit(-1);
}