<p style="white-space: pre-wrap; word-wrap: break-word;">Being unfamiliar with the code helps to highlight things which makes review difficult :)</p><p>Patch set 1:<span style="border-radius: 3px; display: inline-block; margin: 0 2px; padding: 4px;background-color: #ffd4d4;">Code-Review -1</span></p><p><a href="https://gerrit.osmocom.org/12364">View Change</a></p><p>3 comments:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/#/c/12364/1/src/xua_asp_fsm.c">File src/xua_asp_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/12364/1/src/xua_asp_fsm.c@920">Patch Set #1, Line 920:</a> <code style="font-family:monospace,monospace">{</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">So the only use of fi is to get *priv? Than better just pass struct ipa_asp_fsm_priv *iafp as parameter and let caller take care of fi-priv. This function have nothing to do with osmo_fsm_inst so it's better if this is immediately obvious when you look at type signature, which you're effectively changing compared to ipa_asp_fsm_cleanup() anyway.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/12364/1/src/xua_asp_fsm.c@939">Patch Set #1, Line 939:</a> <code style="font-family:monospace,monospace">       osmo_timer_del(&iafp->pong_timer);</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">I don't understand how it works if we bail out before reaching here. Does pong_timer kept forever? Or it's removed by some other code? Please double-check and clarify in a comment or commit message.</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/12364/1/src/xua_asp_fsm.c@1060">Patch Set #1, Line 1060:</a> <code style="font-family:monospace,monospace">        ipa_asp_fsm_del_route(fi);</code></p><p style="white-space: pre-wrap; word-wrap: break-word;">I'd rather see ipa_asp_fsm_cleanup() moved in place of ipa_asp_fsm_del_route() instead of keeping it as this wrapper. If we ever have to change ipa_asp_fsm_del_route() in a way which requires updating its callees than this wrapper is unnecessary indirection which makes it less trivial than it should be. Even in this commit you've de-facto dropped unused cause parameter but because of this indirection it's unclear which parts of the code are affected.</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/12364">change 12364</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/12364"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: libosmo-sccp </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: comment </div>
<div style="display:none"> Gerrit-Change-Id: Idb8e7bd1c74a4b47080fe32ebe0161c503ead571 </div>
<div style="display:none"> Gerrit-Change-Number: 12364 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Stefan Sperling <stsp@stsp.name> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder (1000002) </div>
<div style="display:none"> Gerrit-Reviewer: Max <msuraev@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Neels Hofmeyr <nhofmeyr@sysmocom.de> </div>
<div style="display:none"> Gerrit-Comment-Date: Thu, 20 Dec 2018 11:28:39 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-HasLabels: Yes </div>