mobile: gapk_io_init_ms(): fix 'phy_fmt' may be used uninitialized
Change-Id: I193de6e0e831aa4201f5edec80e40abc43f4a861
This commit is contained in:
parent
3432c6cfe0
commit
cad5af50cc
|
@ -415,6 +415,10 @@ int gapk_io_init_ms(struct osmocom_ms *ms, enum osmo_gapk_codec_type codec)
|
|||
case AUDIO_IOF_TI:
|
||||
phy_fmt = phy_fmt_pick_ti(codec);
|
||||
break;
|
||||
default:
|
||||
LOGP(DGAPK, LOGL_ERROR, "Unhandled I/O format %s\n",
|
||||
audio_io_format_name(set->audio.io_format));
|
||||
return -ENOTSUP;
|
||||
}
|
||||
|
||||
phy_fmt_desc = osmo_gapk_fmt_get_from_type(phy_fmt);
|
||||
|
|
Loading…
Reference in New Issue