lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Date:   Wed,  7 Dec 2016 22:01:42 -0800
From:   Kirtika Ruchandani <kirtika@...omium.org>
To:     tiwai@...e.com
Cc:     Kirtika Ruchandani <kirtika@...omium.org>, arnd@...db.de,
        alsa-devel@...a-project.org, linux-kernel@...r.kernel.org,
        Hardik T Shah <hardik.t.shah@...el.com>,
        Omair M Abdullah <omair.m.abdullah@...el.com>,
        Jeeja KP <jeeja.kp@...el.com>,
        "Subhransu S . Prusty" <subhransu.s.prusty@...el.com>,
        Vinod Koul <vinod.koul@...el.com>,
        Mark Brown <broonie@...nel.org>
Subject: [PATCH] ASoC: Intel: Skylake: remove unused 'out_fmt' variable

Commit 4cd9899f0d16 introduced struct skl_module_fmt* out_fmt without
using it. Compiling with W=1 gives the below warning, fix it.

sound/soc/intel/skylake/skl-topology.c: In function ‘skl_tplg_update_buffer_size’:
sound/soc/intel/skylake/skl-topology.c:301:34: warning: variable ‘out_fmt’ set but not used [-Wunused-but-set-variable]

This is a harmless warning and is only being fixed to reduce the noise
with W=1 in the kernel.

Fixes: 4cd9899f0d16 ("ASoC: Intel: Skylake: Add multiple pin formats")
Cc: Hardik T Shah <hardik.t.shah@...el.com>
Cc: Omair M Abdullah <omair.m.abdullah@...el.com>
Cc: Jeeja KP <jeeja.kp@...el.com>
Cc: Subhransu S. Prusty <subhransu.s.prusty@...el.com>
Cc: Vinod Koul <vinod.koul@...el.com>
Cc: Mark Brown <broonie@...nel.org>
Signed-off-by: Kirtika Ruchandani <kirtika@...omium.org>
---
 sound/soc/intel/skylake/skl-topology.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/sound/soc/intel/skylake/skl-topology.c b/sound/soc/intel/skylake/skl-topology.c
index bd313c9..4352236a 100644
--- a/sound/soc/intel/skylake/skl-topology.c
+++ b/sound/soc/intel/skylake/skl-topology.c
@@ -298,7 +298,7 @@ static void skl_tplg_update_buffer_size(struct skl_sst *ctx,
				struct skl_module_cfg *mcfg)
 {
	int multiplier = 1;
-	struct skl_module_fmt *in_fmt, *out_fmt;
+	struct skl_module_fmt *in_fmt;
	int in_rate, out_rate;


@@ -306,7 +306,6 @@ static void skl_tplg_update_buffer_size(struct skl_sst *ctx,
	 * change for pin 0 only
	 */
	in_fmt = &mcfg->in_fmt[0];
-	out_fmt = &mcfg->out_fmt[0];

	if (mcfg->m_type == SKL_MODULE_TYPE_SRCINT)
		multiplier = 5;
--
2.8.0.rc3.226.g39d4020

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ