<p>pespin has uploaded this change for <strong>review</strong>.</p><p><a href="https://gerrit.osmocom.org/c/osmo-bts/+/25788">View Change</a></p><pre style="font-family: monospace,monospace; white-space: pre-wrap;">lchan: Avoid applying transition changes if state new==old<br><br>This should just not happen, but in case it does, let's make sure we<br>don't run over unexpected paths.<br><br>Change-Id: I1ca86aa846084f53751076643665cb6dabc26a06<br>---<br>M src/common/lchan.c<br>1 file changed, 4 insertions(+), 0 deletions(-)<br><br></pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;">git pull ssh://gerrit.osmocom.org:29418/osmo-bts refs/changes/88/25788/1</pre><pre style="font-family: monospace,monospace; white-space: pre-wrap;"><span>diff --git a/src/common/lchan.c b/src/common/lchan.c</span><br><span>index c4f3a47..99c452b 100644</span><br><span>--- a/src/common/lchan.c</span><br><span>+++ b/src/common/lchan.c</span><br><span>@@ -260,6 +260,10 @@</span><br><span>       LOGPLCHAN(lchan, DL1C, LOGL_INFO, "state %s -> %s\n",</span><br><span>          gsm_lchans_name(lchan->state),</span><br><span>            gsm_lchans_name(state));</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span style="color: hsl(120, 100%, 40%);">+     if (lchan->state == state)</span><br><span style="color: hsl(120, 100%, 40%);">+         return;</span><br><span style="color: hsl(120, 100%, 40%);">+</span><br><span>    lchan->state = state;</span><br><span> </span><br><span>         /* Early Immediate Assignment: if we have a cached early IA pending, send it upon becoming active, or discard it</span><br><span></span><br></pre><p>To view, visit <a href="https://gerrit.osmocom.org/c/osmo-bts/+/25788">change 25788</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/+/25788"/><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: I1ca86aa846084f53751076643665cb6dabc26a06 </div>
<div style="display:none"> Gerrit-Change-Number: 25788 </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>