<p>Corey Farrell <strong>posted comments</strong> on this change.</p><p><a href="https://gerrit.asterisk.org/6722">View Change</a></p><p>Patch set 1:</p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;"><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;"><p style="white-space: pre-wrap; word-wrap: break-word;">These are definitely not whitespace changes. Some of the exit<br>paths now do not call ao2_cleanup() when the cleanup object is<br>always going to be NULL.</p></blockquote><p style="white-space: pre-wrap; word-wrap: break-word;">Right, but it's still just moving code around for the sake of it.<br>These changes have no bearing on functionality. I'm not necessarily<br>against it (heck lots of the code could use some refactoring).</p><p style="white-space: pre-wrap; word-wrap: break-word;">I'm more wondering for changes like these if we need a coding<br>guidelines rule similar to the whitespace one.</p><p style="white-space: pre-wrap; word-wrap: break-word;">Anyone else feel free to chime in with opinions.</p></blockquote><p style="white-space: pre-wrap; word-wrap: break-word;">The current policy is that we allow new features if they have testing, so don't see why we wouldn't allow non-breaking improvements to code which already has testing. RAII_VAR is more expensive than directly calling ao2_cleanup so this is a minor optimization even in paths where the cleanup object will never be NULL.</p><ul style="list-style: none; padding-left: 20px;"></ul><p>To view, visit <a href="https://gerrit.asterisk.org/6722">change 6722</a>. To unsubscribe, visit <a href="https://gerrit.asterisk.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.asterisk.org/6722"/><meta itemprop="name" content="View Change"/></div></div>
<div style="display:none"> Gerrit-Project: asterisk </div>
<div style="display:none"> Gerrit-Branch: 13 </div>
<div style="display:none"> Gerrit-MessageType: comment </div>
<div style="display:none"> Gerrit-Change-Id: I150505db307249a962987e7b941bdd369bb91f35 </div>
<div style="display:none"> Gerrit-Change-Number: 6722 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: Richard Mudgett <rmudgett@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Corey Farrell <git@cfware.com> </div>
<div style="display:none"> Gerrit-Reviewer: Jenkins2 </div>
<div style="display:none"> Gerrit-Reviewer: Kevin Harwell <kharwell@digium.com> </div>
<div style="display:none"> Gerrit-Reviewer: Richard Mudgett <rmudgett@digium.com> </div>
<div style="display:none"> Gerrit-Comment-Date: Tue, 10 Oct 2017 16:43:26 +0000 </div>
<div style="display:none"> Gerrit-HasComments: No </div>