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

Commit 3b35be1e authored by Vatsal Bucha's avatar Vatsal Bucha
Browse files

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: default avatarVatsal Bucha <vbucha@codeaurora.org>
parent 02744ac3
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
// 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 <linux/clk.h>
@@ -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);