bmp_libusb: Remove duplicated libusb_init.

Thanks to Red Liu for noticing
This commit is contained in:
Uwe Bonnes 2021-09-17 12:02:04 +02:00 committed by UweBonnes
parent 9ebc44bcea
commit 79066c950f
1 changed files with 0 additions and 6 deletions

View File

@ -126,12 +126,6 @@ int find_debuggers(BMP_CL_OPTIONS_t *cl_opts,bmp_info_t *info)
libusb_strerror(res));
exit(-1);
}
res = libusb_init(&info->libusb_ctx);
if (res) {
DEBUG_WARN( "Fatal: Failed to get USB context: %s\n",
libusb_strerror(res));
exit(-1);
}
if (cl_opts->opt_cable) {
if ((!strcmp(cl_opts->opt_cable, "list")) ||
(!strcmp(cl_opts->opt_cable, "l"))) {