diff options
author | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-11-29 21:55:12 +0100 |
---|---|---|
committer | Holger Hans Peter Freyther <zecke@selfish.org> | 2011-11-29 21:55:12 +0100 |
commit | 79da6f3283065d900075bf1610f9eb5098863d74 (patch) | |
tree | e3cbec0462f54fb506df32fce440d0f589e447a6 /src/osmo-bts-sysmo/tch.c | |
parent | 143bb812dc196c5774cbc2fe992f67452cac92fd (diff) |
misc: Move the cmr_index into the #if 0 block as it is only used there
Diffstat (limited to 'src/osmo-bts-sysmo/tch.c')
-rw-r--r-- | src/osmo-bts-sysmo/tch.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/osmo-bts-sysmo/tch.c b/src/osmo-bts-sysmo/tch.c index 3533d500..9ea78072 100644 --- a/src/osmo-bts-sysmo/tch.c +++ b/src/osmo-bts-sysmo/tch.c @@ -207,10 +207,11 @@ static struct msgb *l1_to_rtppayload_amr(uint8_t *l1_payload, uint8_t payload_le uint8_t *cur; u_int8_t cmr; uint8_t ft = l1_payload[2] & 0xF; - uint8_t cmr_idx = l1_payload[1]; uint8_t amr_if2_len = payload_len - 2; #if 0 + uint8_t cmr_idx = l1_payload[1]; + /* CMR == Unset means CMR was not transmitted at this TDMA */ if (cmr_idx >= GsmL1_AmrCodecMode_Unset) cmr = AMR_CMR_NONE; |