mirror of
https://gitea.osmocom.org/sim-card/simtrace2.git
synced 2026-03-16 21:28:33 +03:00
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:
@@ -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");
|
||||||
|
|||||||
Reference in New Issue
Block a user