From patchwork Mon Feb 19 06:02:29 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kirill Marinushkin X-Patchwork-Id: 10227163 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 051A160392 for ; Mon, 19 Feb 2018 06:04:55 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DED81287A6 for ; Mon, 19 Feb 2018 06:04:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D0C6428911; Mon, 19 Feb 2018 06:04:54 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, T_DKIM_INVALID autolearn=no version=3.3.1 Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B31B4287A6 for ; Mon, 19 Feb 2018 06:04:52 +0000 (UTC) Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id 31CBE266E7D; Mon, 19 Feb 2018 07:04:50 +0100 (CET) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id 7DAFC2672B4; Mon, 19 Feb 2018 07:04:48 +0100 (CET) Received: from mail-wm0-f65.google.com (mail-wm0-f65.google.com [74.125.82.65]) by alsa0.perex.cz (Postfix) with ESMTP id BA9E1266C0E for ; Mon, 19 Feb 2018 07:04:43 +0100 (CET) Received: by mail-wm0-f65.google.com with SMTP id t74so12910246wme.3 for ; Sun, 18 Feb 2018 22:04:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=1tf6F61I/ER+jP5S7TWJCGJFN3b79wWX7vJxirWZdZs=; b=UksTKgPUL3W9QmXhDyRUsrj2SL6BwlOpZmrOZdwVgYq3Q67FTzZbWGhFmj9bxVLdQE LTEiGVO/rZ3ieAZFi7K2wCxz7Fo3wZwvkqP+iy60idjWdzqu+rA8k/MfdeexTz/TOfBH bAtoS4DJ2PA5+so1Xvn4G/AdCoLrR3FY1sdzlh9047FvlO3sasJrlqffKBHr6I5TbCap csNkf8fsNZ2OPwo2/RSJmIyJxOkvjgUFXsCX0nh1S5FGUSDCPjO35I9neGA84piD8rzM X6Cy7Gy5K329A4RnTFWFljdc/gOG2+qlc/feUb9EJHLceQ+xoFteg0XunXyvq1rZLxCB TaYQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=1tf6F61I/ER+jP5S7TWJCGJFN3b79wWX7vJxirWZdZs=; b=ekJqiuaMVnRaj3dJfWr9CkAu0D9Qx7Vk4v7vrLLZgUe1vZh8OahL+NkIOF4aJYx5WV gJrVOjAuKmxBx8fSfam5zWsJGzAea86Y1BYcRXhszck1yyI/ay9HmHR1OfFwaEGo+Euz Oda70EQQcBm0j8wTrU7iFiynmueWoLxteZ8rm70tirb7dqlbaqrT6g8efIxzMJxPTigB qM8GtIS8z0EmH+42XtLsJA2yad+74LOEjS+S8+j2VKEUhCVXIqMR3I3mFY44TLnicrdS KVT2cPNQeOMcfaUAp7A909sIVDOYzFmYYHlUlAWgiteL868RGyoBAyWGXd7ucuKD0Jt1 ZrBg== X-Gm-Message-State: APf1xPCmF22JJ1CmJhdpx5adLVGyx1xvt9AddTDNcjqfdd28lIX1tvnh 7vyxvH/0UyOxtXLonwpRUGs= X-Google-Smtp-Source: AH8x224bpPhFXm7bRg6uF6rB4p3akFVZDKQP5sXXtM2qnIzKiPRSQpkzg9NMkgoTDyajqzbotjjKDA== X-Received: by 10.28.22.145 with SMTP id 139mr9927340wmw.56.1519020282556; Sun, 18 Feb 2018 22:04:42 -0800 (PST) Received: from gentoo0.localdomain (x4e3351bc.dyn.telefonica.de. [78.51.81.188]) by smtp.gmail.com with ESMTPSA id u136sm7936692wmf.5.2018.02.18.22.04.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 18 Feb 2018 22:04:41 -0800 (PST) From: Kirill Marinushkin To: linux-kernel@vger.kernel.org Date: Mon, 19 Feb 2018 07:02:29 +0100 Message-Id: <20180219060229.17215-1-k.marinushkin@gmail.com> X-Mailer: git-send-email 2.13.6 Cc: Pierre-Louis Bossart , alsa-devel@alsa-project.org, Vinod Koul , Guneshwor Singh , Takashi Iwai , Liam Girdwood , Harsha Priya N , Mark Brown , Naveen Manohar , Kirill Marinushkin Subject: [alsa-devel] [PATCH] ASoC: Intel: Skylake: Fix compiler warning -Wmaybe-uninitialized X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP 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 Cc: Liam Girdwood Cc: Mark Brown Cc: Jaroslav Kysela Cc: Takashi Iwai Cc: Vinod Koul Cc: Guneshwor Singh Cc: Naveen Manohar Cc: Harsha Priya N Cc: Pierre-Louis Bossart Cc: alsa-devel@alsa-project.org Cc: linux-kernel@vger.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)) {