aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@osmocom.org>2021-10-06 21:06:21 +0200
committerHarald Welte <laforge@osmocom.org>2021-10-06 21:06:21 +0200
commit5b7a6082776ca43468d708a0d071ff275767a1f2 (patch)
tree170b25001b014a4f5ff621d4e62099f4e7b5e1be
parente304015b3c015d0f43740d6713babf1efbb76ea4 (diff)
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
-rw-r--r--host/src/simtrace2-cardem-pcsc.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/host/src/simtrace2-cardem-pcsc.c b/host/src/simtrace2-cardem-pcsc.c
index 510a371..df191df 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");