From 5b7a6082776ca43468d708a0d071ff275767a1f2 Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Wed, 6 Oct 2021 21:06:21 +0200 Subject: [PATCH] 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 --- host/src/simtrace2-cardem-pcsc.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/host/src/simtrace2-cardem-pcsc.c b/host/src/simtrace2-cardem-pcsc.c index 510a3718..df191dff 100644 --- a/host/src/simtrace2-cardem-pcsc.c +++ b/host/src/simtrace2-cardem-pcsc.c @@ -524,12 +524,6 @@ int main(int argc, char **argv) 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); if (rc < 0) { perror("unable to open GSMTAP");