From patchwork Tue Sep 19 13:47:18 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 9959217 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 370A860208 for ; Tue, 19 Sep 2017 14:49:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2FA5A289D9 for ; Tue, 19 Sep 2017 14:49:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 245C228CEB; Tue, 19 Sep 2017 14:49:19 +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=-4.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_MED autolearn=unavailable version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id B788428CE2 for ; Tue, 19 Sep 2017 14:49:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Date:Message-Id: In-Reply-To:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: References:List-Owner; bh=KgaT22cyjOHq34zevfB3I9wy+ea7mK+707p0tUbcdFA=; b=CRK fHOB8e8M8jHgHe+LJ9VTRvF7pcS/xMOk/oADQ9lVyhK/l5KzUeDsD3+kjm6ahZiMYg4cDG0qcXANE 6hZOZdgsgDst27o+hBabqF6NJUxqeEZMbOr+kj7/7oK6h/595nomhW9/acdhMSaz4HO/9avm0pO8l Vur9YF54TS7xxru2hooD76CcWuiWRpHZDWWav/Kwkj3QgGy+So8sGYOhOdlwZHUKz0C2FG4CXwdDy 1y4r2VHSs4vGkcjXwycbyTqsxHKOpcDYfNARL3bEGz/Y9UJ1EnAP5cFjDV+2qND+kaY40TDOXgrVh 55D9LE79qMZ7/isIKBDWh+Eb8i7kprw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1duJpq-0003jp-Nr; Tue, 19 Sep 2017 14:49:14 +0000 Received: from merlin.infradead.org ([2001:8b0:10b:1231::1]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1duJpo-0003jP-EV for linux-arm-kernel@bombadil.infradead.org; Tue, 19 Sep 2017 14:49:12 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Date:Message-Id:In-Reply-To:Subject:Cc: To:From:Sender:Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:References:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=0TN4xYmdwKaQ0RjWXLT6tC6SzbKkLV1UfeGl8EZgQWI=; b=QJHg1K3h5EjMHYE0/qxrrOPHPJ pPEWQZ1iOtS++KluldOaG56HJQEnJYU4en6jvlnhg46mMxID2nvsoERyqx1hN4XIezkiaF1sx3K+n dZXU8IVUAElsKpEzMU1HEiWPqlq9XHNAy/UBRaTN2bD8Pb3Ap+dQuQlQk5oM67wGrQ8rFSSGx28Xt jDFFEHGR+qAd3tNJLn+E5EP8jmJ6noDkv3nLQt8vSR4YcD+/JKt5bLxnItMQYWMmjhGSROHdAbnD9 wzF1hGwy8T04d5a9bbvvidfQn+CoGm2VtrnA7Td9aNacDz9dmhItp3LC2iY4Na3uIi72y0oMF1y0T se7SeaLg==; Received: from heliosphere.sirena.org.uk ([2a01:7e01::f03c:91ff:fed4:a3b6]) by merlin.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1duItS-0002Ec-1b for linux-arm-kernel@lists.infradead.org; Tue, 19 Sep 2017 13:48:55 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sirena.org.uk; s=20170815-heliosphere; h=Date:Message-Id:In-Reply-To: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:References: List-Id:List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner: List-Archive; bh=0TN4xYmdwKaQ0RjWXLT6tC6SzbKkLV1UfeGl8EZgQWI=; b=Wbse2DqPbEeD WgwEHqRTuwc1FRLs6QYPVdRL+ZWrT1ty8/vxUIyhmtpFu/4FbX13+yPTwTUn7uH7RGyPEDqRKQsYT I6EfAyW1lRys9SWk1+X5eHNQLSgXOs+jpxDuAzFcPwFPnQqbgm0YvBoq0w5hLzzpIVWnnWCShgJv7 Rer4Y=; Received: from debutante.sirena.org.uk ([2001:470:1f1d:6b5::3] helo=debutante) by heliosphere.sirena.org.uk with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1duIrv-0001QA-6j; Tue, 19 Sep 2017 13:47:19 +0000 Received: from broonie by debutante with local (Exim 4.89) (envelope-from ) id 1duIru-0008PT-QD; Tue, 19 Sep 2017 14:47:18 +0100 From: Mark Brown To: Colin Ian King Subject: Applied "ASoC: zte: spdif: remove duplicate initialization of dma_data" to the asoc tree In-Reply-To: <20170918085638.27110-1-colin.king@canonical.com> Message-Id: Date: Tue, 19 Sep 2017 14:47:18 +0100 X-Bad-Reply: In-Reply-To but no 'Re:' in Subject. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org, Takashi Iwai , kernel-janitors@vger.kernel.org, Liam Girdwood , Jaroslav Kysela , Mark Brown , Jun Nie , Baoyou Xie , Shawn Guo , linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The patch ASoC: zte: spdif: remove duplicate initialization of dma_data has been applied to the asoc tree at git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted. You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed. If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced. Please add any relevant lists and maintainers to the CCs when replying to this mail. Thanks, Mark From b6145837218cb984245aea5ccd9201aeb5eb0501 Mon Sep 17 00:00:00 2001 From: Colin Ian King Date: Mon, 18 Sep 2017 09:56:38 +0100 Subject: [PATCH] ASoC: zte: spdif: remove duplicate initialization of dma_data dma_data is being initialized twice, remove the unused first initialization and use the latter one instead. Fixed clang warning: "warning: Value stored to 'dma_data' during its initialization is never read" Signed-off-by: Colin Ian King Signed-off-by: Mark Brown --- sound/soc/zte/zx-spdif.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/zte/zx-spdif.c b/sound/soc/zte/zx-spdif.c index b143f9f682d2..17b6ce35037a 100644 --- a/sound/soc/zte/zx-spdif.c +++ b/sound/soc/zte/zx-spdif.c @@ -139,11 +139,11 @@ static int zx_spdif_hw_params(struct snd_pcm_substream *substream, { struct zx_spdif_info *zx_spdif = dev_get_drvdata(socdai->dev); struct zx_spdif_info *spdif = snd_soc_dai_get_drvdata(socdai); - struct snd_dmaengine_dai_dma_data *dma_data = &zx_spdif->dma_data; + struct snd_dmaengine_dai_dma_data *dma_data = + snd_soc_dai_get_dma_data(socdai, substream); u32 val, ch_num, rate; int ret; - dma_data = snd_soc_dai_get_dma_data(socdai, substream); dma_data->addr_width = params_width(params) >> 3; val = readl_relaxed(zx_spdif->reg_base + ZX_CTRL);