<p><a href="https://gerrit.osmocom.org/c/osmo-bsc/+/21829">View Change</a></p><p>4 comments:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/c/osmo-bsc/+/21829/1/src/osmo-bsc/abis_om2000.c">File src/osmo-bsc/abis_om2000.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-bsc/+/21829/1/src/osmo-bsc/abis_om2000.c@2310">Patch Set #1, Line 2310:</a> <code style="font-family:monospace,monospace">   trx->rbs2000.trx_fi = fi;</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">in an alloc() function (returning the allocated struct) I would expect this to be done by the caller. You can also drop the OSMO:ASSERT you introduce above.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/osmo-bsc/+/21829/1/src/osmo-bsc/abis_om2000.c@2326">Patch Set #1, Line 2326:</a> <code style="font-family:monospace,monospace">     if (strcmp(osmo_fsm_inst_state_name(bts_fi), "DONE") &&</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">better check against bts->fi->state == <enum></p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/osmo-bsc/+/21829/1/src/osmo-bsc/abis_om2000.c@2340">Patch Set #1, Line 2340:</a> <code style="font-family:monospace,monospace">   if (strcmp(osmo_fsm_inst_state_name(bts_fi), "DONE") &&</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">same, check against enum.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/osmo-bsc/+/21829/1/src/osmo-bsc/abis_om2000.c@2630">Patch Set #1, Line 2630:</a> <code style="font-family:monospace,monospace">   bts->rbs2000.bts_fi = fi;</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Same, I'd expect this to be done by caller.</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-bsc/+/21829">change 21829</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-bsc/+/21829"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-bsc </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: Ia37cffff5c451e1d79a52ccae41ab5718b4661d4 </div>
<div style="display:none"> Gerrit-Change-Number: 21829 </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-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-CC: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Comment-Date: Tue, 22 Dec 2020 10:35:52 +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>