mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-08 21:22:09 -04:00
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:
parent
f16ce29169
commit
fad1a7b95c
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue