[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20180219060229.17215-1-k.marinushkin@gmail.com>
Date: Mon, 19 Feb 2018 07:02:29 +0100
From: Kirill Marinushkin <k.marinushkin@...il.com>
To: linux-kernel@...r.kernel.org
Cc: Kirill Marinushkin <k.marinushkin@...il.com>,
Liam Girdwood <lgirdwood@...il.com>,
Mark Brown <broonie@...nel.org>,
Jaroslav Kysela <perex@...ex.cz>,
Takashi Iwai <tiwai@...e.com>,
Vinod Koul <vinod.koul@...el.com>,
Guneshwor Singh <guneshwor.o.singh@...el.com>,
Naveen Manohar <naveen.m@...el.com>,
Harsha Priya N <harshapriya.n@...el.com>,
Pierre-Louis Bossart <pierre-louis.bossart@...ux.intel.com>,
alsa-devel@...a-project.org
Subject: [PATCH] ASoC: Intel: Skylake: Fix compiler warning -Wmaybe-uninitialized
Configuration:
SND_SOC_INTEL_SKYLAKE=y
PM_SLEEP=y
Warning message:
sound/soc/intel/skylake/skl.c: In function 'skl_resume':
sound/soc/intel/skylake/skl.c:326:6: warning: 'ret' may be used
uninitialized in this function [-Wmaybe-uninitialized]
int ret;
^~~
Fixes: 4557c305d4fc ("ASoC: Intel: Skylake: Add support for active suspend")
Signed-off-by: Kirill Marinushkin <k.marinushkin@...il.com>
Cc: Liam Girdwood <lgirdwood@...il.com>
Cc: Mark Brown <broonie@...nel.org>
Cc: Jaroslav Kysela <perex@...ex.cz>
Cc: Takashi Iwai <tiwai@...e.com>
Cc: Vinod Koul <vinod.koul@...el.com>
Cc: Guneshwor Singh <guneshwor.o.singh@...el.com>
Cc: Naveen Manohar <naveen.m@...el.com>
Cc: Harsha Priya N <harshapriya.n@...el.com>
Cc: Pierre-Louis Bossart <pierre-louis.bossart@...ux.intel.com>
Cc: alsa-devel@...a-project.org
Cc: linux-kernel@...r.kernel.org
---
sound/soc/intel/skylake/skl.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sound/soc/intel/skylake/skl.c b/sound/soc/intel/skylake/skl.c
index 31d8634e8aa1..273a9ab75489 100644
--- a/sound/soc/intel/skylake/skl.c
+++ b/sound/soc/intel/skylake/skl.c
@@ -323,7 +323,7 @@ static int skl_resume(struct device *dev)
struct skl *skl = ebus_to_skl(ebus);
struct hdac_bus *bus = ebus_to_hbus(ebus);
struct hdac_ext_link *hlink = NULL;
- int ret;
+ int ret = 0;
/* Turned OFF in HDMI codec driver after codec reconfiguration */
if (IS_ENABLED(CONFIG_SND_SOC_HDAC_HDMI)) {
--
2.13.6
Powered by blists - more mailing lists