From fad1a7b95c9f086ce2e7fb792802ad7b4c78fa30 Mon Sep 17 00:00:00 2001 From: Zhou Song Date: Fri, 21 May 2021 15:18:16 +0800 Subject: [PATCH] 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 --- dsp/q6afe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dsp/q6afe.c b/dsp/q6afe.c index 458f662aab72..f55a262a4e33 100755 --- a/dsp/q6afe.c +++ b/dsp/q6afe.c @@ -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;