Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp1273831rwb; Sun, 6 Nov 2022 22:46:41 -0800 (PST) X-Google-Smtp-Source: AA0mqf5OcXeFDqKT70iXELOO2b58yvtFtxndFV8Hp+qabu1fQgJZiAXtfPtovivWgKRK5j+KAyca X-Received: by 2002:a05:6402:159:b0:466:70e8:6f5c with SMTP id s25-20020a056402015900b0046670e86f5cmr2232934edu.162.1667803601505; Sun, 06 Nov 2022 22:46:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1667803601; cv=none; d=google.com; s=arc-20160816; b=coA2UpyT9gb+XXEgr91FLjQ4CuwayJzmQ+CIxCbe8W3uZo52e+IB5amO9fj82iuSzB FOjTg11oWkmEdK9ESziRBTxYrVtjk8tygyuChykS2r51+CuPDALch0Ut3ZLF4ERuXGXF zbyRYsGLyh2hR1qMVuO8Z6T1Pp7q4RuwbkOMQuACEpQXoHRI7YIAnnsJ7Y02mznhefdo SrRmAl9L+HY3W8TNbgXbsgSwT23MCwIknbFOmEjeyvbMwd1BJKiCHaJfuyj+y+vwF9gi enLvu8WfY9ykEG/3vylzOyJURl3BOsUugg6w1VMwjlWE3KRaqmKXO2UbF6HYMqW5w57u mByQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=UYQP3iTXh8p8uuqzFfwnZ82Lye4spJU4UekDwwerE/0=; b=f5TBi+Q6+mTJui7VuVwa1MTxY+v5xFgQLjQ04hMI6t4sUTzoVdO517WGCytU/kLjqu jFMzswPMrsJ3zdf/RkdhzHlAfr+A8jL9P0DMyYHN+tVoQualstafdV3gMoCuyg+xZ1dk M/UDDlfEk6qcgRBE/4XnppUN4gVUuJWs69u/mn04h4isVpYrIdnOPFCWrxhoNFoF+vs5 lIP3Jo75v0HiEDwMU23o1C4H+KeVG/KjaHCbdagBz/jO6NlJwkBgXZHkSCNNSZBejZ7A U1ej0CLFngKKRToUap9UD3f7+GDHMuwCmk2WH3ydALU2hi2+cdAWf1kucJsakZf5rMOy Ycfg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ga14-20020a1709070c0e00b007ae6869f9d9si3396642ejc.419.2022.11.06.22.46.19; Sun, 06 Nov 2022 22:46:41 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=alibaba.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230506AbiKGGgR (ORCPT + 95 others); 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: 8bit X-Spam-Status: No, score=-9.9 required=5.0 tests=BAYES_00, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, UNPARSEABLE_RELAY,USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Variable 'desc_addr' set but not used. sound/pci/cs5535audio/cs5535audio_pcm.c:113:12: warning: variable 'desc_addr' set but not used. Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=2739 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/cs5535audio/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 cs5535audio *cs5535au, unsigned int period_bytes) { unsigned int i; - u32 addr, desc_addr, jmpprd_addr; + u32 addr, jmpprd_addr; struct cs5535audio_dma_desc *lastdesc; if (periods > CS5535AUDIO_MAX_DESCRIPTORS) @@ -131,14 +131,12 @@ static int cs5535audio_build_dma_packets(struct cs5535audio *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 = (u32) substream->runtime->dma_addr; - desc_addr = (u32) dma->desc_buf.addr; for (i = 0; i < periods; i++) { struct cs5535audio_dma_desc *desc = &((struct cs5535audio_dma_desc *) dma->desc_buf.area)[i]; desc->addr = cpu_to_le32(addr); desc->size = cpu_to_le16(period_bytes); desc->ctlreserved = cpu_to_le16(PRD_EOP); - desc_addr += sizeof(struct cs5535audio_dma_desc); addr += period_bytes; } /* we reserved one dummy descriptor at the end to do the PRD jump */ -- 2.20.1.7.g153144c