aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeels Hofmeyr <nhofmeyr@sysmocom.de>2021-10-05 08:28:03 +0200
committerNeels Hofmeyr <nhofmeyr@sysmocom.de>2021-10-05 08:29:15 +0200
commit1d31967ed60d30163dd39f7b6135bcddaa2ee78e (patch)
tree0e297405d601647aea465c6661de929f290d3eb4
parent22622452095bff83b254b5c5123438564f3b2219 (diff)
tsc fixup: tweak condition for coverity
Related: CID#240352 SYS#4895 Change-Id: Idbc6b47df0aeca9b6d870386b037dd6fb7c96c82
-rw-r--r--src/osmo-bsc/assignment_fsm.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/osmo-bsc/assignment_fsm.c b/src/osmo-bsc/assignment_fsm.c
index a1b423f48..1449bdbae 100644
--- a/src/osmo-bsc/assignment_fsm.c
+++ b/src/osmo-bsc/assignment_fsm.c
@@ -836,13 +836,14 @@ static void assignment_fsm_wait_lchan_modified_onenter(struct osmo_fsm_inst *fi,
.ch_mode_rate = conn->assignment.selected_ch_mode_rate,
.requires_voice_stream = conn->assignment.requires_voice_stream,
.msc_assigned_cic = req->msc_assigned_cic,
- /* keep previous training sequence code */
+ /* keep previous training sequence code. TSC is always present, TSC Set may or may not be an explicit
+ * value. */
.tsc_set = {
.present = (lchan->tsc_set >= 0),
.val = lchan->tsc_set,
},
.tsc = {
- .present = (lchan->tsc >= 0),
+ .present = true,
.val = lchan->tsc,
},
};