Received: by 10.223.185.116 with SMTP id b49csp28642wrg; Thu, 8 Mar 2018 12:16:41 -0800 (PST) X-Google-Smtp-Source: AG47ELtpqZRzZrNboCmXD6WoUOeug1iElHFx4QcsNR9oW0m6LpLP2TTq0xkDnTsI2jf97sUG2PI5 X-Received: by 10.99.1.12 with SMTP id 12mr21987392pgb.179.1520540201489; Thu, 08 Mar 2018 12:16:41 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520540201; cv=none; d=google.com; s=arc-20160816; b=z/dNWaYVu0TclqEORxCxKgzupbdx4/jmozWkjbhoSL8KFa/5sDWQTyjaNxb+jKyzRh IF+XknuqfOzTU0wO52ZVf9rs4siPUXsaGG9u9nJ7Z61Qs9Sh1mLuVGhMmsevdEqIJKTF aIHHN/FPMsjGqY+bdjx0B+sJNgOmbw18WpzEn33t2Uea8RnWKpLHyizmNBTVX9XEfV9P JLQJtlJojWMNVbElS5OPBTN1EAEuekHW7zXr1Wa0fpy9UsEZr/uU2B/GFJ/LCnHcnk67 jJ4q/Jy815EmqwqKvHiYnOnJXwhtgOGX0ViRlyQznE2f6Cvp/ObHCLjbx9WQKR+57Fvn kmMw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=8vjrNIs9Jh5s47p/13gw1Z0gYtXMS4xfvmg+jAfLeSg=; b=luMdHOEDqv/6PHskwRDWNrFdXPtNftWDmToxwBsyQZGF/laBr4VfeiNF1kyjAPgwe6 IIsWkdpkqUYg9FyfIOKSdbH6VtxR2+DFxZ4JlcypWGgAGgHZVvrNSwTkDCmkcTVF+X2E AoTZfAtWlf7XbQxY8thL/1zKSFe3XZPX8T3UN2pS+4uVw2y8SpI/Qf93SU7R9bDhVqkU QNFQYpy/9VvBOTfVHjstJk0EMyxbAhqEuKvwHpDwzLrsVXosKhkmjuFM+cEQAErMhdbV 5dcw/vGfY/ELx5M/scL+VanzttW5cbSCz/E+olV/8YDer39lg9H9w9RADoP/0UDp+W+j ZuRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@broadcom.com header.s=google header.b=AaKKHD22; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w8si13320000pgt.182.2018.03.08.12.16.26; Thu, 08 Mar 2018 12:16:41 -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=pass header.i=@broadcom.com header.s=google header.b=AaKKHD22; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750973AbeCHUP3 (ORCPT + 99 others); Thu, 8 Mar 2018 15:15:29 -0500 Received: from mail-qk0-f194.google.com ([209.85.220.194]:32899 "EHLO mail-qk0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750880AbeCHUP1 (ORCPT ); Thu, 8 Mar 2018 15:15:27 -0500 Received: by mail-qk0-f194.google.com with SMTP id f25so1168263qkm.0 for ; Thu, 08 Mar 2018 12:15:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding:content-language; bh=8vjrNIs9Jh5s47p/13gw1Z0gYtXMS4xfvmg+jAfLeSg=; b=AaKKHD225+zSF8494t19r5f9QOuehdHPa25OoifApQwEIVOUxG+4KZSP5PVRC5jtKp cz1ycUTsdsRftj62ufFTMs/MybkyoQIRSSpkPVT1g9nEDvmp7mLodco1uy56cn39jbfx g1w6iHIqMXYkz8HaTwkq46u7N3INFEMTM0Yuw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=8vjrNIs9Jh5s47p/13gw1Z0gYtXMS4xfvmg+jAfLeSg=; b=QhtcZw4la3h0AD6ppk2gWXxMNl5URrCsc1+qvIHhx+puYaq8PO8hk/NPzBudCFuqh8 3iaGsd5NSWwRNLHroH4jUKLvQjyIJWcqpIjDPQVyBgMOlhS8uPbij95l1j8xxLtG+Kri sXX73WxfXXktRJF5GupD8tXYQLTlIsC8u+TjPRpcujRCccJNhOSI7CRQUVlOwFHS1zAX 6n76X3ukEj2GL31lygC6Cu6Fx8FeTlQxudXGF6EjIPo488puE6X9bvao5rfuWDP6n4Jx kw+36Up4/rPjG/1gQH//PgXsTlg6+6VuQD4J38S+fKDoA6ibMm6RLeIzAK2kZbXFkEPO pMFw== X-Gm-Message-State: AElRT7HiUn7MyFMefJpddKutoKnaBhENFd0YXVQjn/GIiAZcA7y9z3bP nc9G/1GfPAZttbpjYe+lW7tlrYXP X-Received: by 10.55.103.130 with SMTP id b124mr41433861qkc.244.1520540126921; Thu, 08 Mar 2018 12:15:26 -0800 (PST) Received: from [10.136.13.65] ([192.19.224.250]) by smtp.gmail.com with ESMTPSA id v41sm13830512qtb.78.2018.03.08.12.15.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 08 Mar 2018 12:15:25 -0800 (PST) Subject: Re: [PATCH] ASoC: cygnus: remove redundant assignment to pointer 'res' To: Colin King , 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 Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org References: <20180308133249.22032-1-colin.king@canonical.com> From: Scott Branden Message-ID: <576fbe04-bef0-171d-a1eb-40c6cbb2874e@broadcom.com> Date: Thu, 8 Mar 2018 12:15:22 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 In-Reply-To: <20180308133249.22032-1-colin.king@canonical.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Looks good. On 18-03-08 05:32 AM, Colin King wrote: > From: Colin Ian King > > 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 Acked-by: Scott Branden > --- > 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;