cosmetic: Fix formatting of if-else block brackets

Change-Id: Ifec6674ba04109f6b8a039679caff08f060d83d9
This commit is contained in:
Pau Espin 2022-09-01 17:05:20 +02:00
parent 52da5b6f64
commit ebecff4a5a
2 changed files with 6 additions and 4 deletions

View File

@ -505,7 +505,7 @@ int tx_tchf_fn(struct l1sched_ts *l1ts, struct trx_dl_burst_req *br)
if (msgb_l2len(msg) == GSM_MACBLOCK_LEN) {
gsm0503_tch_fr_encode(*bursts_p, msg->l2h, msgb_l2len(msg), 1);
chan_state->dl_facch_bursts = 8;
} else if (tch_mode == GSM48_CMODE_SPEECH_AMR)
} else if (tch_mode == GSM48_CMODE_SPEECH_AMR) {
/* the first FN 4,13,21 defines that CMI is included in frame,
* the first FN 0,8,17 defines that CMR is included in frame.
*/
@ -514,8 +514,9 @@ int tx_tchf_fn(struct l1sched_ts *l1ts, struct trx_dl_burst_req *br)
chan_state->codec, chan_state->codecs,
chan_state->dl_ft,
chan_state->dl_cmr);
else
} else {
gsm0503_tch_fr_encode(*bursts_p, msg->l2h, msgb_l2len(msg), 1);
}
/* free message */
msgb_free(msg);

View File

@ -432,7 +432,7 @@ int tx_tchh_fn(struct l1sched_ts *l1ts, struct trx_dl_burst_req *br)
gsm0503_tch_hr_encode(*bursts_p, msg->l2h, msgb_l2len(msg));
chan_state->dl_ongoing_facch = 1; /* first of two TCH frames */
chan_state->dl_facch_bursts = 6;
} else if (tch_mode == GSM48_CMODE_SPEECH_AMR)
} else if (tch_mode == GSM48_CMODE_SPEECH_AMR) {
/* the first FN 4,13,21 or 5,14,22 defines that CMI is included
* in frame, the first FN 0,8,17 or 1,9,18 defines that CMR is
* included in frame. */
@ -441,8 +441,9 @@ int tx_tchh_fn(struct l1sched_ts *l1ts, struct trx_dl_burst_req *br)
chan_state->codec, chan_state->codecs,
chan_state->dl_ft,
chan_state->dl_cmr);
else
} else {
gsm0503_tch_hr_encode(*bursts_p, msg->l2h, msgb_l2len(msg));
}
/* free message */
msgb_free(msg);