<p><a href="https://gerrit.osmocom.org/c/osmo-bsc/+/23317">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-bsc/+/23317/2/src/osmo-bsc/abis_om2000_vty.c">File src/osmo-bsc/abis_om2000_vty.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/+/23317/2/src/osmo-bsc/abis_om2000_vty.c@495">Patch Set #2, Line 495:</a> <code style="font-family:monospace,monospace"> if (!strcmp(argv[0], "external"))</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">"else if", or simply else.</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">ah right.. saves an instruction i guess. <br>I actually wondered about these vty functions;  if we should return CMD_SUCCESS only for a recognized param. </p><p style="white-space: pre-wrap; word-wrap: break-word;">if somehow the function were to be called with a invalid param should return an error (which is impossible from the vty, right?)</p><p style="white-space: pre-wrap; word-wrap: break-word;">so instead of if else, it would be ifs with early returm?</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/+/23317/2/src/osmo-bsc/abis_om2000_vty.c@681">Patch Set #2, Line 681:</a> <code style="font-family:monospace,monospace">     if (bts->rbs2000.sync_src >= 0) {</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">I don't see sync_src being < 0 anywhere. […]</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">you're (both) right of course - this is a hangover from an earlier draft when this code was in bsc_vty.c and before we initialised the member.</p><p style="white-space: pre-wrap; word-wrap: break-word;">@javi can you remove the condition? (remember, if you git rebase -i first it's easier to amend the commit)</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-bsc/+/23317">change 23317</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/+/23317"/><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: Ia3d1acd6b3442238b35fc911092e12a6ac989adb </div>
<div style="display:none"> Gerrit-Change-Number: 23317 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: javi-tic <javi@tic-ac.org> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins Builder </div>
<div style="display:none"> Gerrit-CC: fixeria <vyanitskiy@sysmocom.de> </div>
<div style="display:none"> Gerrit-CC: keith <keith@rhizomatica.org> </div>
<div style="display:none"> Gerrit-CC: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Comment-Date: Thu, 11 Mar 2021 19:59:17 +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>