<p style="white-space: pre-wrap; word-wrap: break-word;">Agree with pespin.</p><p><a href="https://gerrit.osmocom.org/c/libosmo-abis/+/14743">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/libosmo-abis/+/14743/10/src/input/ipaccess.c">File src/input/ipaccess.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/libosmo-abis/+/14743/10/src/input/ipaccess.c@74">Patch Set #10, Line 74:</a> <code style="font-family:monospace,monospace">     struct osmo_fsm_inst** ka_fsm;</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">I don't see a point in using pointers to pointers here simply to have 3 shorter lines which fit anyw […]</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">... or introduce a macrco ;)</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/c/libosmo-abis/+/14743/10/src/input/ipaccess.c@130">Patch Set #10, Line 130:</a> <code style="font-family:monospace,monospace">       struct osmo_fsm_inst** ka_fsm;</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">Again avoid this. If you want, catch any of this in a pointer:  […]</blockquote></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">#define FOO(e1i_ts) \<br>    ((e1i_ts)->driver.ipaccess.ka_fsm)</pre><p style="white-space: pre-wrap; word-wrap: break-word;">/* ... */</p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">if (FOO(ipaccess_line_ts(bfd, line))) {<br>    osmo_fsm_inst_free(FOO(ipaccess_line_ts(bfd, line)));<br>    FOO(ipaccess_line_ts(bfd, line)) = NULL;<br>}</pre><p style="white-space: pre-wrap; word-wrap: break-word;">Or even better: store the result of ipaccess_line_ts(bfd, line) and make it shorter:</p><p style="white-space: pre-wrap; word-wrap: break-word;">struct xxx *e1i_ts = ipaccess_line_ts(bfd, line);</p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">if (FOO(e1i_ts)) {<br>    osmo_fsm_inst_free(FOO(e1i_ts));<br>    FOO(e1i_ts) = NULL;<br>}</pre></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/c/libosmo-abis/+/14743">change 14743</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/libosmo-abis/+/14743"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: libosmo-abis </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: I30e3bd601e55355aaf738ee2f2c44c1ec2c46c6a </div>
<div style="display:none"> Gerrit-Change-Number: 14743 </div>
<div style="display:none"> Gerrit-PatchSet: 10 </div>
<div style="display:none"> Gerrit-Owner: Hoernchen <ewild@sysmocom.de> </div>
<div style="display:none"> Gerrit-Assignee: osmith <osmith@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Hoernchen <ewild@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-Reviewer: osmith <osmith@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-CC: fixeria <axilirator@gmail.com> </div>
<div style="display:none"> Gerrit-CC: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-Comment-Date: Wed, 22 Jan 2020 12:31:05 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-Has-Labels: No </div>
<div style="display:none"> Comment-In-Reply-To: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: comment </div>