asoc: fix KW issue of using uninitialized variable

Set initial vaue for cfg_type to avoid possible
accessing of uninitialized variable.

Change-Id: Ib2fa91202442a656915263694bd6fbf5cd663544
Signed-off-by: Zhou Song <zhous@codeaurora.org>
This commit is contained in:
Zhou Song 2021-05-21 15:18:16 +08:00
commit fad1a7b95c

View file

@ -5817,7 +5817,7 @@ static int __afe_port_start(u16 port_id, union afe_port_config *afe_config,
union afe_port_config port_cfg;
struct param_hdr_v3 param_hdr;
int ret = 0;
int cfg_type;
int cfg_type = 0;
int index = 0;
enum afe_mad_type mad_type;
uint16_t port_index;