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.
diff --git a/openbsc/src/abis_rsl.c b/openbsc/src/abis_rsl.c
index b1c15c0..3495e6c 100644
--- a/openbsc/src/abis_rsl.c
+++ b/openbsc/src/abis_rsl.c
@@ -811,10 +811,8 @@
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;
}
}