From nobody Thu Sep 11 23:38:37 2025 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2CF58C001DB for ; Tue, 8 Aug 2023 18:09:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231234AbjHHSJe (ORCPT ); Tue, 8 Aug 2023 14:09:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50380 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231838AbjHHSJK (ORCPT ); Tue, 8 Aug 2023 14:09:10 -0400 Received: from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A76CE64814 for ; Tue, 8 Aug 2023 10:10:48 -0700 (PDT) Received: from dggpeml500003.china.huawei.com (unknown [172.30.72.56]) by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4RKv7p0JCzz1hwHG; Tue, 8 Aug 2023 21:25:26 +0800 (CST) Received: from huawei.com (10.175.103.91) by dggpeml500003.china.huawei.com (7.185.36.200) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.27; Tue, 8 Aug 2023 21:28:14 +0800 From: Yu Liao To: , , CC: , , , , Subject: [PATCH v2 -next] ASoC: pxa: address unused variable warning Date: Tue, 8 Aug 2023 21:25:19 +0800 Message-ID: <20230808132519.637452-1-liaoyu15@huawei.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Originating-IP: [10.175.103.91] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To dggpeml500003.china.huawei.com (7.185.36.200) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" gcc with W=3D1 reports sound/soc/pxa/pxa-ssp.c:594:15: warning: variable 'acds' set but not used [= -Wunused-but-set-variable] ^ This variable is not used so remove it. Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202308040619.BEismjFv-lkp@int= el.com/ Signed-off-by: Yu Liao --- sound/soc/pxa/pxa-ssp.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/sound/soc/pxa/pxa-ssp.c b/sound/soc/pxa/pxa-ssp.c index 430dd446321e..d19769dde139 100644 --- a/sound/soc/pxa/pxa-ssp.c +++ b/sound/soc/pxa/pxa-ssp.c @@ -591,7 +591,7 @@ static int pxa_ssp_hw_params(struct snd_pcm_substream *= substream, =20 if (ret < 0) { const struct pxa_ssp_clock_mode *m; - int ssacd, acds; + int ssacd; =20 for (m =3D pxa_ssp_clock_modes; m->rate; m++) { if (m->rate =3D=3D rate) @@ -601,12 +601,6 @@ static int pxa_ssp_hw_params(struct snd_pcm_substream = *substream, if (!m->rate) return -EINVAL; =20 - acds =3D m->acds; - - /* The values in the table are for 16 bits */ - if (width =3D=3D 32) - acds--; - ret =3D pxa_ssp_set_pll(priv, bclk); if (ret < 0) return ret; --=20 2.25.1