diff options
author | Pau Espin Pedrol <pespin@sysmocom.de> | 2022-09-01 17:05:20 +0200 |
---|---|---|
committer | Pau Espin Pedrol <pespin@sysmocom.de> | 2022-09-01 17:05:20 +0200 |
commit | ebecff4a5ab9d6c2d429633c802e1f607422302d (patch) | |
tree | 792a8cae7aaa97b839bc7472b12f32c4d3d5fc92 | |
parent | 52da5b6f6474183bb399f6de7d731335bb050041 (diff) |
cosmetic: Fix formatting of if-else block brackets
Change-Id: Ifec6674ba04109f6b8a039679caff08f060d83d9
-rw-r--r-- | src/osmo-bts-trx/sched_lchan_tchf.c | 5 | ||||
-rw-r--r-- | src/osmo-bts-trx/sched_lchan_tchh.c | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/src/osmo-bts-trx/sched_lchan_tchf.c b/src/osmo-bts-trx/sched_lchan_tchf.c index b530d25d..65f397d3 100644 --- a/src/osmo-bts-trx/sched_lchan_tchf.c +++ b/src/osmo-bts-trx/sched_lchan_tchf.c @@ -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); diff --git a/src/osmo-bts-trx/sched_lchan_tchh.c b/src/osmo-bts-trx/sched_lchan_tchh.c index 7b0f96a1..a5f67470 100644 --- a/src/osmo-bts-trx/sched_lchan_tchh.c +++ b/src/osmo-bts-trx/sched_lchan_tchh.c @@ -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); |