<p><a href="https://gerrit.osmocom.org/c/osmo-bts/+/24324">View Change</a></p><p>2 comments:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/osmo-bts/+/24324/1/src/osmo-bts-trx/trx_if.c">File src/osmo-bts-trx/trx_if.c:</a></p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/osmo-bts/+/24324/1/src/osmo-bts-trx/trx_if.c@1086">Patch Set #1, Line 1086:</a> <code style="font-family:monospace,monospace">      if (br == NULL) {</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">The code flow used here looks really complex and confusing with all the checkings and goto. Have a look at the following proposal:</p><p style="white-space: pre-wrap; word-wrap: break-word;">if (br) {<br>...</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/osmo-bts/+/24324/1/src/osmo-bts-trx/trx_if.c@1133">Patch Set #1, Line 1133:</a> <code style="font-family:monospace,monospace">  if (pdu_ver >= 2)</code></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">...<br>} else if (pdu_ver < 2 || pdu_num == 0) {<br> return -ENOMSG;<br>} else {<br>  last_pdu[1] &= ~(1 << 7);<br>}</pre></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-bts/+/24324">change 24324</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/osmo-bts/+/24324"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-bts </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I9b4cc8e10cd683b28d22e32890569484cd20372d </div>
<div style="display:none"> Gerrit-Change-Number: 24324 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: fixeria <vyanitskiy@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-CC: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Comment-Date: Fri, 21 May 2021 15:54:31 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-Has-Labels: No </div>
<div style="display:none"> Gerrit-MessageType: comment </div>