<p>laforge has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/simtrace2/+/25704">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">simtrace2-cardem-pcsc: Remove double libusb initialization<br><br>This code already calls osmo_libusb_init further above in the top<br>of the main() function, so there's no use of calling libusb_init()<br>directly in the same function lines below.<br><br>Change-Id: I2e0c7446aaa644c5aae1059ce91ff9f729903cbc<br>---<br>M host/src/simtrace2-cardem-pcsc.c<br>1 file changed, 0 insertions(+), 6 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/simtrace2 refs/changes/04/25704/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/host/src/simtrace2-cardem-pcsc.c b/host/src/simtrace2-cardem-pcsc.c</span><br><span>index 510a371..df191df 100644</span><br><span>--- a/host/src/simtrace2-cardem-pcsc.c</span><br><span>+++ b/host/src/simtrace2-cardem-pcsc.c</span><br><span>@@ -524,12 +524,6 @@</span><br><span> </span><br><span>   ci->card_prof = &osim_uicc_sim_cic_profile;</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-  rc = libusb_init(NULL);</span><br><span style="color: hsl(0, 100%, 40%);">- if (rc < 0) {</span><br><span style="color: hsl(0, 100%, 40%);">-                fprintf(stderr, "libusb initialization failed\n");</span><br><span style="color: hsl(0, 100%, 40%);">-            goto do_exit;</span><br><span style="color: hsl(0, 100%, 40%);">-   }</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span>    rc = osmo_st2_gsmtap_init(gsmtap_host);</span><br><span>      if (rc < 0) {</span><br><span>             perror("unable to open GSMTAP");</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/simtrace2/+/25704">change 25704</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/c/simtrace2/+/25704"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: simtrace2 </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I2e0c7446aaa644c5aae1059ce91ff9f729903cbc </div>
<div style="display:none"> Gerrit-Change-Number: 25704 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>