<p>Patch set 4:<span style="border-radius: 3px; display: inline-block; margin: 0 2px; padding: 4px;background-color: #d4ffd4;">Code-Review +1</span></p><p><a href="https://gerrit.osmocom.org/c/osmo-bts/+/18904">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-bts/+/18904/4/src/common/bts_shutdown_fsm.c">File src/common/bts_shutdown_fsm.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/+/18904/4/src/common/bts_shutdown_fsm.c@51">Patch Set #4, Line 51:</a> <code style="font-family:monospace,monospace">osmo_fsm_inst_dispatch</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">I guess sending events to the FSM could be done directly, without the need to pass a callback function. Or will there be other call-backs in the upcoming changes? Not a merge blocker, just wondering.</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/+/18904/4/src/common/bts_shutdown_fsm.c@59">Patch Set #4, Line 59:</a> <code style="font-family:monospace,monospace">     for (i = 0; i < bts->num_trx; i++) {</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Why not to iterate over the linked list directly?</p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">  llist_for_each_entry(trx, &bts->trx_list, list) { ... }</pre><p style="white-space: pre-wrap; word-wrap: break-word;">gsm_bts_trx_num() does the same, but the larger the list of transceivers is, the more redundant iterations you do.</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/+/18904/4/src/common/bts_shutdown_fsm.c@75">Patch Set #4, Line 75:</a> <code style="font-family:monospace,monospace">            for (i = 0; i < bts->num_trx; i++) {</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">Same here. Of course, this is not a performance critical part, but still.</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/+/18904/4/src/common/bts_shutdown_fsm.c@81">Patch Set #4, Line 81:</a> <code style="font-family:monospace,monospace">%d</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">%u, it's unsigned</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-bts/+/18904">change 18904</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/+/18904"/><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: I70e34dda8974ebd94aea33bd9fb1d99f9063cc55 </div>
<div style="display:none"> Gerrit-Change-Number: 18904 </div>
<div style="display:none"> Gerrit-PatchSet: 4 </div>
<div style="display:none"> Gerrit-Owner: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: fixeria <vyanitskiy@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-Reviewer: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-CC: neels <nhofmeyr@sysmocom.de> </div>
<div style="display:none"> Gerrit-Comment-Date: Tue, 23 Jun 2020 12:08:27 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-Has-Labels: Yes </div>
<div style="display:none"> Gerrit-MessageType: comment </div>