From 3b35be1ebab4ce68175a85eb91fa8a5b705fb845 Mon Sep 17 00:00:00 2001 From: Vatsal Bucha Date: Mon, 23 Aug 2021 11:43:15 +0530 Subject: [PATCH] ASoC: codecs: Initialize temp_val before use for wsa881x-analog Initialize temp_val before use in wsa881x_ocp_ctl_work. Change-Id: Id4fcca78068896be1e7a8fa0d382ea903bd6934f Signed-off-by: Vatsal Bucha --- asoc/codecs/wsa881x-analog.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/asoc/codecs/wsa881x-analog.c b/asoc/codecs/wsa881x-analog.c index 2a07f9928517..62247524f1cc 100644 --- a/asoc/codecs/wsa881x-analog.c +++ b/asoc/codecs/wsa881x-analog.c @@ -1,6 +1,6 @@ // SPDX-License-Identifier: GPL-2.0-only /* - * Copyright (c) 2015-2016, 2018-2020, The Linux Foundation. All rights reserved. + * Copyright (c) 2015-2016, 2018-2021, The Linux Foundation. All rights reserved. */ #include @@ -922,7 +922,7 @@ static void wsa881x_ocp_ctl_work(struct work_struct *work) struct wsa881x_pdata *wsa881x; struct delayed_work *dwork; struct snd_soc_component *component; - int temp_val; + int temp_val = 0; dwork = to_delayed_work(work); wsa881x = container_of(dwork, struct wsa881x_pdata, ocp_ctl_work);