simtrace2-cardem-pcsc: Remove double libusb initialization

This code already calls osmo_libusb_init further above in the top
of the main() function, so there's no use of calling libusb_init()
directly in the same function lines below.

Change-Id: I2e0c7446aaa644c5aae1059ce91ff9f729903cbc
This commit is contained in:
Harald Welte
2021-10-06 21:06:21 +02:00
parent e304015b3c
commit 5b7a608277

View File

@@ -524,12 +524,6 @@ int main(int argc, char **argv)
ci->card_prof = &osim_uicc_sim_cic_profile; ci->card_prof = &osim_uicc_sim_cic_profile;
rc = libusb_init(NULL);
if (rc < 0) {
fprintf(stderr, "libusb initialization failed\n");
goto do_exit;
}
rc = osmo_st2_gsmtap_init(gsmtap_host); rc = osmo_st2_gsmtap_init(gsmtap_host);
if (rc < 0) { if (rc < 0) {
perror("unable to open GSMTAP"); perror("unable to open GSMTAP");