<p>pespin has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-pcu/+/22420">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">tbf: Drop always-true condition checking for MS<br><br>TBF is always attached to an MS object (despite the MS object can change<br>over time due to MS objects being merged when found duplicate upon<br>receiving new info). Hence, it makes no sense to check if the TBF is<br>attached. If it's not, then it's a bug.<br><br>Change-Id: If292a53a09a64664031e756bff4735b9c6ee8651<br>---<br>M src/tbf.cpp<br>1 file changed, 2 insertions(+), 2 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-pcu refs/changes/20/22420/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/tbf.cpp b/src/tbf.cpp</span><br><span>index 37af21f..cfc13df 100644</span><br><span>--- a/src/tbf.cpp</span><br><span>+++ b/src/tbf.cpp</span><br><span>@@ -196,9 +196,9 @@</span><br><span>         enum CodingScheme cs;</span><br><span> </span><br><span>    if (direction == GPRS_RLCMAC_UL_TBF)</span><br><span style="color: hsl(0, 100%, 40%);">-            cs = m_ms ? ms_current_cs_ul(m_ms) : UNKNOWN;</span><br><span style="color: hsl(120, 100%, 40%);">+         cs = ms_current_cs_ul(m_ms);</span><br><span>         else</span><br><span style="color: hsl(0, 100%, 40%);">-            cs = m_ms ? ms_current_cs_dl(m_ms) : UNKNOWN;</span><br><span style="color: hsl(120, 100%, 40%);">+         cs = ms_current_cs_dl(m_ms);</span><br><span> </span><br><span>     return cs;</span><br><span> }</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-pcu/+/22420">change 22420</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-pcu/+/22420"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-pcu </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-Change-Id: If292a53a09a64664031e756bff4735b9c6ee8651 </div>
<div style="display:none"> Gerrit-Change-Number: 22420 </div>
<div style="display:none"> Gerrit-PatchSet: 1 </div>
<div style="display:none"> Gerrit-Owner: pespin <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-MessageType: newchange </div>