Received: by 10.223.185.116 with SMTP id b49csp6316328wrg; Thu, 8 Mar 2018 05:34:35 -0800 (PST) X-Google-Smtp-Source: AG47ELv5j/HBj1Ks5nMJoD8ADEJ8vUaAptTZzT5Zc5AjyM6j0GphhpO4eXdLQ2J3Shf6Nvb7rX4L X-Received: by 10.99.124.91 with SMTP id l27mr20783330pgn.298.1520516075480; Thu, 08 Mar 2018 05:34:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520516075; cv=none; d=google.com; s=arc-20160816; b=0uY2KMbkuRc6jXzi3MNicsGA8RG0XTE//R/JbH7zv19AEaOs9+5sHQXAOKtcvkLi16 Tqj39SXj31J8AaNENdM/Gh1SFsdcbWMMvjfiGoNVX6NNMxo5nrJxVIeBvGln9R99IMPc b7k4h8oNLWyICyBaYFTUUmiEutyqMyStBmdVIqc4kAu/xSwFax1522aZrb6K0Hr0HOPR Ph0+dawEUgTpde1WYZ9Qg1pQFCDMbBez14EwNf6hSyAholK8y9VPpKHx91ydI/dPF2Vc jHo+9t7vhsUMs0d/ahpSI7l+hsHkG9KNeOA1P8ii6FefXklQ4XPZr4T5KuVz5VZ7KnSK a8Fw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:arc-authentication-results; bh=TZOujZ5MtHK9SGCg1GZ9kudGrWq/OEce3bkK7bmZYW4=; b=YOawxhmQx4RN0AAUpWHGwMqI8JTyZM5dr4zRTgrXlfmAyd9FdsIc1I4IzEr/jCOONz LAXYKP8h+yZFoP6nGQWkhHRwAQ+Fm/6f3nyme0MwvJjfijBzZHJR/NkYFnAVlMwZGKwf IwRk/hTGVCiRLl99cX/C/KRKRMMDVtN/ZQNU7qYnOUwbZwZdbNS8utMk4Blzj9rEspNp SBSHwly2Dwwc14swZhzIf+ti+HmkEKRs9dq7bLD86aXbW77YU2DTRwn4eVZqOSeWFOJW 8Lorop4OCl3aTvXlmkcv8f37piRL0Bn8ErrcxSlccjjr+Jv43AfQ1SdhxjsO77qL2nEC hZxA== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c12-v6si14655856plo.278.2018.03.08.05.34.13; Thu, 08 Mar 2018 05:34:35 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=canonical.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755519AbeCHNdQ (ORCPT + 99 others); Thu, 8 Mar 2018 08:33:16 -0500 Received: from youngberry.canonical.com ([91.189.89.112]:50804 "EHLO youngberry.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751652AbeCHNdO (ORCPT ); Thu, 8 Mar 2018 08:33:14 -0500 Received: from 1.general.cking.uk.vpn ([10.172.193.212] helo=localhost) by youngberry.canonical.com with esmtpsa (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.76) (envelope-from ) id 1etvf8-0005b4-1K; Thu, 08 Mar 2018 13:32:50 +0000 From: Colin King To: 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 Subject: [PATCH] ASoC: cygnus: remove redundant assignment to pointer 'res' Date: Thu, 8 Mar 2018 14:32:49 +0100 Message-Id: <20180308133249.22032-1-colin.king@canonical.com> X-Mailer: git-send-email 2.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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.15.1