summaryrefslogtreecommitdiffstats
path: root/openbsc/src
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2009-07-04 10:05:51 +0200
committerHarald Welte <laforge@gnumonks.org>2009-07-04 10:05:51 +0200
commit73be3aafec5d911f1786aa5e2ec092fc8858dea4 (patch)
tree9111f6ed3036fef670fd3969db98d4115b6b1f1a /openbsc/src
parent81543bcdd21f03b8a5aff9a19b6406439f27c6fe (diff)
remove superfluous check for lchan->use > 0
If we receive one of those strange BS-11 "Cause 22" errors, we don't need to check if the lchan use counter is > 0. If it was 0, the lchan gets released anyway.
Diffstat (limited to 'openbsc/src')
-rw-r--r--openbsc/src/abis_rsl.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/openbsc/src/abis_rsl.c b/openbsc/src/abis_rsl.c
index b1c15c02b..3495e6c4d 100644
--- a/openbsc/src/abis_rsl.c
+++ b/openbsc/src/abis_rsl.c
@@ -811,10 +811,8 @@ static int rsl_rx_conn_fail(struct msgb *msg)
if (TLVP_PRESENT(&tp, RSL_IE_CAUSE) &&
TLVP_LEN(&tp, RSL_IE_CAUSE) >= 1 &&
*TLVP_VAL(&tp, RSL_IE_CAUSE) == 0x18) {
- if (msg->lchan->use_count > 0) {
- DEBUGPC(DRSL, "Cause 0x18 IGNORING, lchan in use! (%d times)\n", msg->lchan->use_count);
- return 0;
- }
+ DEBUGPC(DRSL, "Cause 0x18 IGNORING\n");
+ return 0;
}
}