From nobody Thu Apr 9 13:42:36 2026 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 ED95AC4332F for ; Mon, 7 Nov 2022 06:36:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231302AbiKGGgR (ORCPT ); Mon, 7 Nov 2022 01:36:17 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46854 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229687AbiKGGgQ (ORCPT ); Mon, 7 Nov 2022 01:36:16 -0500 Received: from out30-57.freemail.mail.aliyun.com (out30-57.freemail.mail.aliyun.com [115.124.30.57]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D35C860EC for ; Sun, 6 Nov 2022 22:36:14 -0800 (PST) X-Alimail-AntiSpam: AC=PASS;BC=-1|-1;BR=01201311R961e4;CH=green;DM=||false|;DS=||;FP=0|-1|-1|-1|0|-1|-1|-1;HT=ay29a033018046059;MF=jiapeng.chong@linux.alibaba.com;NM=1;PH=DS;RN=7;SR=0;TI=SMTPD_---0VU7DbWG_1667802962; Received: from localhost(mailfrom:jiapeng.chong@linux.alibaba.com fp:SMTPD_---0VU7DbWG_1667802962) by smtp.aliyun-inc.com; Mon, 07 Nov 2022 14:36:11 +0800 From: Jiapeng Chong To: jayakumar.alsa@gmail.com Cc: perex@perex.cz, tiwai@suse.com, alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, Jiapeng Chong , Abaci Robot Subject: [PATCH] ALSA: cs5535audio: Remove the redundant assignment Date: Mon, 7 Nov 2022 14:35:54 +0800 Message-Id: <20221107063554.17933-1-jiapeng.chong@linux.alibaba.com> X-Mailer: git-send-email 2.20.1.7.g153144c MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Variable 'desc_addr' set but not used. sound/pci/cs5535audio/cs5535audio_pcm.c:113:12: warning: variable 'desc_add= r' set but not used. Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=3D2739 Reported-by: Abaci Robot Signed-off-by: Jiapeng Chong --- sound/pci/cs5535audio/cs5535audio_pcm.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sound/pci/cs5535audio/cs5535audio_pcm.c b/sound/pci/cs5535audi= o/cs5535audio_pcm.c index 0db24cc4d916..9c88e99e3750 100644 --- a/sound/pci/cs5535audio/cs5535audio_pcm.c +++ b/sound/pci/cs5535audio/cs5535audio_pcm.c @@ -110,7 +110,7 @@ static int cs5535audio_build_dma_packets(struct cs5535a= udio *cs5535au, unsigned int period_bytes) { unsigned int i; - u32 addr, desc_addr, jmpprd_addr; + u32 addr, jmpprd_addr; struct cs5535audio_dma_desc *lastdesc; =20 if (periods > CS5535AUDIO_MAX_DESCRIPTORS) @@ -131,14 +131,12 @@ static int cs5535audio_build_dma_packets(struct cs553= 5audio *cs5535au, /* the u32 cast is okay because in snd*create we successfully told pci alloc that we're only 32 bit capable so the upper will be 0 */ addr =3D (u32) substream->runtime->dma_addr; - desc_addr =3D (u32) dma->desc_buf.addr; for (i =3D 0; i < periods; i++) { struct cs5535audio_dma_desc *desc =3D &((struct cs5535audio_dma_desc *) dma->desc_buf.area)[i]; desc->addr =3D cpu_to_le32(addr); desc->size =3D cpu_to_le16(period_bytes); desc->ctlreserved =3D cpu_to_le16(PRD_EOP); - desc_addr +=3D sizeof(struct cs5535audio_dma_desc); addr +=3D period_bytes; } /* we reserved one dummy descriptor at the end to do the PRD jump */ --=20 2.20.1.7.g153144c