Received: by 10.223.185.116 with SMTP id b49csp6563223wrg; Thu, 8 Mar 2018 09:25:10 -0800 (PST) X-Google-Smtp-Source: AG47ELvmPsTg8W7OrTDWA62i9tfuucw4hf0S/IxCa9PSWBvEyt3LzK4wbcjtS4PbTdkRgQFVcznx X-Received: by 2002:a17:902:6943:: with SMTP id k3-v6mr17567216plt.214.1520529910616; Thu, 08 Mar 2018 09:25:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520529910; cv=none; d=google.com; s=arc-20160816; b=dgFF7GVO53oXKIzNJZgWiXsaAn/SaK3VqHgAOIhzcPqoUwFWtQqzzVfeZ4hLLNU0Bc igQeYb4Ai6apr++hJ6m28E5UfB8J5eIzzlCQJy8s/DZKaZqk57nfNTJXxYOwSFKDIa5G EZTKAp94ZP/dFHjJCdqqc3KgGvhVkjnqy1VSh6DyA0GoW/uwQ7Le6RCXPJlI6E5Cp1Vn AF2Bv9ZtIjjYFj2Sxwr2Urb+X/XqaLB5epoeOwcfU/0Npt8nCVCXFFtUA2WUZVLQmqOs 0B01MN64WcdzJtdwcq53S90b4ZipwpPvY6rmPqnTQgotl0Sv0BvpNy5x4ehlhgKUxbf+ gcaQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:message-id:in-reply-to:subject:cc:to :from:dkim-signature:arc-authentication-results; bh=CeJFY1jAuuVGrfz4Sgm3zYsz330HbXmfF+luPkKdjpk=; b=B4PRUtU5LnR3EDX9UD6zwRE8XcobgJ4MICso9r4IfdMKIXt51eK37mDgZPLPwXhunW +qIjjZu1Bs48K8B75MBAtcphAWy0OcFBpp1FBchiArZBysH+uhjV4raj5FWJ0RSXX7zz 9hrLKK9BIrt31O5ilYk8IuMzcUG6V6bLhjTRaKb9WWn8vy4+E+iI67zWCkulrI7D2jT8 Gqo6omP1vZKv6nRhT6yYnOL/xU/C9J237opV2KCZHjE3PSg7v8hkvwBNejTDUI+xwV1a kYKq+JYZIzo60NO5GZ779WPhvkrYgBW+leHY0K0t9Vk/Gr3+Ayr9vlgkOi8m/stV9vJY bMGg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=i7PJasoE; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f127si13231383pgc.49.2018.03.08.09.24.56; Thu, 08 Mar 2018 09:25:10 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=i7PJasoE; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935984AbeCHRWx (ORCPT + 99 others); Thu, 8 Mar 2018 12:22:53 -0500 Received: from heliosphere.sirena.org.uk ([172.104.155.198]:38230 "EHLO heliosphere.sirena.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933922AbeCHRWm (ORCPT ); Thu, 8 Mar 2018 12:22:42 -0500 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=CeJFY1jAuuVGrfz4Sgm3zYsz330HbXmfF+luPkKdjpk=; b=i7PJasoE+wNf zVODCLzvnyKVbwhANPRq5OgN3AkuaA8X0D5fJg4ZM7Pd8whenm4otR8HKdK9bL4ZB71rp780Acp5K TrFLC5WWJ1vh1kv7WEKMhbRLTyo9xYQLVcMOvIn8ZY3FtRwtL2smLyibqJdUDJLM3uaYWJXS9SS3B U3ShI=; 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 1etzFL-0001Qe-2n; Thu, 08 Mar 2018 17:22:27 +0000 Received: from broonie by debutante with local (Exim 4.90_1) (envelope-from ) id 1etzFK-0007WS-K7; Thu, 08 Mar 2018 17:22:26 +0000 From: Mark Brown To: Colin Ian King Cc: Mark Brown , Liam Girdwood , Mark Brown , Jaroslav Kysela , Takashi Iwai , Ray Jui , Scott Branden , Jon Mason , bcm-kernel-feedback-list@broadcom.com, Lori Hikichi , alsa-devel@alsa-project.org, linux-arm-kernel@lists.infradead.org, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org, alsa-devel@alsa-project.org Subject: Applied "ASoC: cygnus: remove redundant assignment to pointer 'res'" to the asoc tree In-Reply-To: <20180308133249.22032-1-colin.king@canonical.com> Message-Id: Date: Thu, 08 Mar 2018 17:22:26 +0000 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The patch ASoC: cygnus: remove redundant assignment to pointer 'res' has been applied to the asoc tree at https://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 0338753a57aaf331cb7016bbfdba6086bf93149c Mon Sep 17 00:00:00 2001 From: Colin Ian King Date: Thu, 8 Mar 2018 14:32:49 +0100 Subject: [PATCH] ASoC: cygnus: remove redundant assignment to pointer 'res' The pointer res is being initialized with a value that is never read and re-assigned immediately after, hence the initialization is redundant and can be removed. Cleans up clang warning: sound/soc/bcm/cygnus-ssp.c:1284:19: warning: Value stored to 'res' during its initialization is never read Signed-off-by: Colin Ian King Signed-off-by: Mark Brown --- sound/soc/bcm/cygnus-ssp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/bcm/cygnus-ssp.c b/sound/soc/bcm/cygnus-ssp.c index abafadc0b534..b733f1446353 100644 --- a/sound/soc/bcm/cygnus-ssp.c +++ b/sound/soc/bcm/cygnus-ssp.c @@ -1281,7 +1281,7 @@ static int cygnus_ssp_probe(struct platform_device *pdev) { struct device *dev = &pdev->dev; struct device_node *child_node; - struct resource *res = pdev->resource; + struct resource *res; struct cygnus_audio *cygaud; int err = -EINVAL; int node_count; -- 2.16.2