diff options
author | Vadim Yanitskiy <vyanitskiy@sysmocom.de> | 2024-06-12 19:01:03 +0700 |
---|---|---|
committer | fixeria <vyanitskiy@sysmocom.de> | 2024-06-15 05:19:38 +0000 |
commit | c310fcfef7f10d026fbfb9569c2a2b46c6984186 (patch) | |
tree | 5ab0aa86c61b4679e9e41ae24a3edd7cb5e59b86 /src/host/layer23 | |
parent | 784993a54a3cadb81410cd8298caa4c179f33fa8 (diff) |
mobile: cosmetic: fix -Wswitch in tch_voice_state_init()
Not really critical, just make gcc happy:
tch_voice.c: In function ‘tch_voice_state_init’:
tch_voice.c:117:9: warning: enumeration value ‘TCH_VOICE_IOH_GAPK’ not handled in switch [-Wswitch]
117 | switch (state->handler) {
| ^~~~~~
Change-Id: I46afce396f730de26f21e0e4ec71e144aafd6beb
Diffstat (limited to 'src/host/layer23')
-rw-r--r-- | src/host/layer23/src/mobile/tch_voice.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/host/layer23/src/mobile/tch_voice.c b/src/host/layer23/src/mobile/tch_voice.c index ac793e84..a740f71f 100644 --- a/src/host/layer23/src/mobile/tch_voice.c +++ b/src/host/layer23/src/mobile/tch_voice.c @@ -122,8 +122,8 @@ int tch_voice_state_init(struct gsm_trans *trans, struct tch_voice_state *state) case TCH_VOICE_IOH_LOOPBACK: rr->audio_mode = AUDIO_RX_TRAFFIC_IND | AUDIO_TX_TRAFFIC_REQ; break; -#ifdef WITH_GAPK_IO case TCH_VOICE_IOH_GAPK: +#ifdef WITH_GAPK_IO if ((cd->chan_nr & RSL_CHAN_NR_MASK) == RSL_CHAN_Bm_ACCHs) state->gapk_io = gapk_io_state_alloc_mode_rate(ms, cd->mode, true); else /* RSL_CHAN_Lm_ACCHs */ |