<blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;"><p style="white-space: pre-wrap; word-wrap: break-word;">Patch Set 2:</p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;"><p style="white-space: pre-wrap; word-wrap: break-word;">Patch Set 2:</p><p style="white-space: pre-wrap; word-wrap: break-word;">the question is: *if* you want to remove one of the memset-zero, wouldn't it be more logical to remove the one that initializes br->burst to zero and keep the memcpy/memset here?</p></blockquote><p style="white-space: pre-wrap; word-wrap: break-word;">If you mean removing the memzero from msgb, I'm in favour, but that's probably going to break some existing code :P</p></blockquote><p style="white-space: pre-wrap; word-wrap: break-word;">Actually, in the current code the burst buffer is allocated on stack [1] and then implicitly zero-initialized [2] by structure assignment. I would prefer to keep the implicit initialization, so we don't have to memset() tail bits in each lchan handler.</p><p style="white-space: pre-wrap; word-wrap: break-word;">[1] https://git.osmocom.org/osmo-bts/tree/src/osmo-bts-trx/scheduler_trx.c#n61<br>[2] https://git.osmocom.org/osmo-bts/tree/src/osmo-bts-trx/scheduler_trx.c#n90</p><p><a href="https://gerrit.osmocom.org/c/osmo-bts/+/19011">View Change</a></p><ul style="list-style: none; padding: 0;"></ul><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-bts/+/19011">change 19011</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/+/19011"/><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: Ic4f6d550010da5caf4bc471ff1e184c9fab30c6d </div>
<div style="display:none"> Gerrit-Change-Number: 19011 </div>
<div style="display:none"> Gerrit-PatchSet: 2 </div>
<div style="display:none"> Gerrit-Owner: fixeria <vyanitskiy@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: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-CC: laforge <laforge@osmocom.org> </div>
<div style="display:none"> Gerrit-Comment-Date: Fri, 26 Jun 2020 14:15:23 +0000 </div>
<div style="display:none"> Gerrit-HasComments: No </div>
<div style="display:none"> Gerrit-Has-Labels: No </div>
<div style="display:none"> Gerrit-MessageType: comment </div>