<p>pespin has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-pcu/+/25819">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">tbf: Assert if update() is called on UL TBF<br><br>This function is expected to be used only on DL TBF so far, so let's<br>really assert to avoid going through if something is wrong and ending up<br>later with other issues.<br><br>Change-Id: If398ee48364fce5b5e38830b2b278b3bad9a48a2<br>---<br>M src/tbf.cpp<br>1 file changed, 1 insertion(+), 3 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/19/25819/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 2e2e388..3e190b4 100644</span><br><span>--- a/src/tbf.cpp</span><br><span>+++ b/src/tbf.cpp</span><br><span>@@ -314,10 +314,8 @@</span><br><span> {</span><br><span>       int rc;</span><br><span> </span><br><span style="color: hsl(0, 100%, 40%);">-     if (direction != GPRS_RLCMAC_DL_TBF)</span><br><span style="color: hsl(0, 100%, 40%);">-            return -EINVAL;</span><br><span style="color: hsl(0, 100%, 40%);">-</span><br><span>      LOGP(DTBF, LOGL_DEBUG, "********** DL-TBF update **********\n");</span><br><span style="color: hsl(120, 100%, 40%);">+    OSMO_ASSERT(direction == GPRS_RLCMAC_DL_TBF);</span><br><span> </span><br><span>    tbf_unlink_pdch(this);</span><br><span>       rc = the_pcu->alloc_algorithm(bts, this, false, -1);</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-pcu/+/25819">change 25819</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/+/25819"/><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: If398ee48364fce5b5e38830b2b278b3bad9a48a2 </div>
<div style="display:none"> Gerrit-Change-Number: 25819 </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>