From patchwork Thu Mar 8 17:22:26 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 131032 Delivered-To: patch@linaro.org Received: by 10.46.66.2 with SMTP id p2csp6734936lja; Thu, 8 Mar 2018 09:22:48 -0800 (PST) X-Google-Smtp-Source: AG47ELsvwESZnzaIhF4+N52Kch2JcvqINHDIXeHf56JSQF/fwcjQzbJblVpw1j9u8bmMD1fIYiKM X-Received: by 10.223.138.203 with SMTP id z11mr22441297wrz.199.1520529767953; Thu, 08 Mar 2018 09:22:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520529767; cv=none; d=google.com; s=arc-20160816; b=ZTE+1wRgvRisb7qgGNK4pYTQC10WXKY2M7V6BnsPoLTSHUuKNWXuzO/p1ThV1QuDIv v4RYSTBoXyxSUWnMwEjR0yIVxWg068636wJUI+2bfeBG+a2hJBqjuMcg2LOAGt0SxHUT n+FvccopqwPtKXwreYVKIWEDO5lMQxK97KlnN0SWZ+W3awrT+NblOrPUZ6qNW0OdYTsu uYayVg9ylTYKBhWgksi+yvX7GP7qSf/c0Ovilsq7CeZT96mKOI3ptpw1zlJiTbWjzDO9 mTdWD5zytnzpCYP+YXRoIizXSNnnMJKmKQgbJniMJz/tBVqHwvrj2PUyt36e7AWbzKSR xOdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:date:message-id:in-reply-to:to:from :dkim-signature:delivered-to:arc-authentication-results; bh=Td9mG6hIMAPkf4JxObxhRdUSwBiUNLzE0HPPED2VPzs=; b=szM9HJO+wGKGnYagK0su3R9oi6mtiBnsYAa0yj04Y8Y88kx8xloO8KHiRBnBJEBgu9 pywdslvoa3PXLeiqdpKojPSAul0YLYbdlrQckt4eHxxZv+bJh0Ex/jMBxyVvgIJZPdpV ZUkTkKJVZDNHYQE7a4TRDgDTQrojAgJ3FSIjEuZMkFAZt5IdbrxSwXl+NidxvzzRqYGr 6CNJnjHvDUB3yp3WPfIXsK5WQYAHLMe66YQtk7JBSPtrIg+t/k4fCklrup2Vfkj2hHtZ Yn8zfilaQnp4RgXpIP7aFGuadGYrVljQHyFVosOUKVy8gY4aK+DPYbXALqtJX7psSAGq XF+g== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=i7PJasoE; spf=pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) smtp.mailfrom=alsa-devel-bounces@alsa-project.org Return-Path: Received: from alsa0.perex.cz (alsa0.perex.cz. [77.48.224.243]) by mx.google.com with ESMTP id v75si10038566wmd.256.2018.03.08.09.22.47; Thu, 08 Mar 2018 09:22:47 -0800 (PST) Received-SPF: pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) client-ip=77.48.224.243; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@sirena.org.uk header.s=20170815-heliosphere header.b=i7PJasoE; spf=pass (google.com: domain of alsa-devel-bounces@alsa-project.org designates 77.48.224.243 as permitted sender) smtp.mailfrom=alsa-devel-bounces@alsa-project.org Received: from alsa0.perex.cz (localhost [127.0.0.1]) by alsa0.perex.cz (Postfix) with ESMTP id AC2FD267559; Thu, 8 Mar 2018 18:22:46 +0100 (CET) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id A48E326755E; Thu, 8 Mar 2018 18:22:44 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mail1.perex.cz X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS, SPF_PASS, T_RP_MATCHES_RCVD autolearn=disabled version=3.4.0 Received: from heliosphere.sirena.org.uk (heliosphere.sirena.org.uk [172.104.155.198]) by alsa0.perex.cz (Postfix) with ESMTP id 1FF7A267559 for ; Thu, 8 Mar 2018 18:22:42 +0100 (CET) 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 In-Reply-To: <20180308133249.22032-1-colin.king@canonical.com> Message-Id: Date: Thu, 08 Mar 2018 17:22:26 +0000 Cc: alsa-devel@alsa-project.org, Lori Hikichi , linux-kernel@vger.kernel.org, Scott Branden , Jon Mason , Ray Jui , kernel-janitors@vger.kernel.org, Takashi Iwai , Liam Girdwood , Mark Brown , bcm-kernel-feedback-list@broadcom.com, linux-arm-kernel@lists.infradead.org Subject: [alsa-devel] Applied "ASoC: cygnus: remove redundant assignment to pointer 'res'" to the asoc tree X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.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(-) -- 2.16.2 _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel 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;