tsc fixup: tweak condition for coverity

Related: CID#240352 SYS#4895
Change-Id: Idbc6b47df0aeca9b6d870386b037dd6fb7c96c82
This commit is contained in:
Neels Hofmeyr 2021-10-05 08:28:03 +02:00
parent 2262245209
commit 1d31967ed6
1 changed files with 3 additions and 2 deletions

View File

@ -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,
},
};