Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c4b4d9d8 authored by Zhou Song's avatar Zhou Song Committed by Gerrit - the friendly Code Review server
Browse files

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: default avatarZhou Song <zhous@codeaurora.org>
parent de549a6f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -5387,7 +5387,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;