From patchwork Fri Jul 24 07:40:36 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 11682453 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id CC3BC13B6 for ; Fri, 24 Jul 2020 07:43:23 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id B404720791 for ; Fri, 24 Jul 2020 07:43:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1595576603; bh=7Y6Qsp3HGJ5Ii/fIf6Yq0qBPBqdTjN0QQ//7iQ2S+xo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:List-ID:From; b=AYpEbVaEJmS6IzqXp5Ar5S6mlDsKgu8zfukVhQZGDfzhaEMb0bLHDMoEHvArwMVFe PErEDvbijvg8NT+1pqlgQ50iKZsTY3om7RDeJiJZ9+4MQNjT+3q0sftCqymsCuG8sK AtPmKQXG9z1qJ3jrfQFmwDYHJlCTmVS9aqJGdIz0= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726861AbgGXHnW (ORCPT ); Fri, 24 Jul 2020 03:43:22 -0400 Received: from mail.kernel.org ([198.145.29.99]:37566 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726607AbgGXHnW (ORCPT ); Fri, 24 Jul 2020 03:43:22 -0400 Received: from kozik-lap.mshome.net (unknown [194.230.155.213]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 67D3920771; Fri, 24 Jul 2020 07:43:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1595576601; bh=7Y6Qsp3HGJ5Ii/fIf6Yq0qBPBqdTjN0QQ//7iQ2S+xo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Q8lQ1NgBUnpMzvwNWQCIM9NCHIlVp3rxSAKN0ti7nKks09XipPLucOfG+2M67iK86 BvjUHcN5p1mqFF4ALd7rVk3ndjTb8tJNxWDyNgpi36gMWDDGctzkBOqqXDyeEp5P96 fzhmRjMwPp5097vV7OOyYsgqpB7qhSVCEFPgrDL0= From: Krzysztof Kozlowski To: Arnd Bergmann , Olof Johansson , Markus Mayer , bcm-kernel-feedback-list@broadcom.com, Florian Fainelli , Santosh Shilimkar , Matthias Brugger , Roger Quadros , Tony Lindgren , Vladimir Zapolskiy , Kukjin Kim , Thierry Reding , Jonathan Hunter , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org, linux-omap@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-tegra@vger.kernel.org Cc: Andrew Morton , Linus Torvalds , Krzysztof Kozlowski Subject: [PATCH v2 27/29] memory: da8xx-ddrctl: Remove unused 'node' variable Date: Fri, 24 Jul 2020 09:40:36 +0200 Message-Id: <20200724074038.5597-28-krzk@kernel.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200724074038.5597-1-krzk@kernel.org> References: <20200724074038.5597-1-krzk@kernel.org> Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org The variable 'node' is not used. Remove it to silence compile warning: drivers/memory/da8xx-ddrctl.c: In function 'da8xx_ddrctl_probe': drivers/memory/da8xx-ddrctl.c:105:22: warning: variable 'node' set but not used [-Wunused-but-set-variable] Signed-off-by: Krzysztof Kozlowski --- Changes since v1: 1. New patch --- drivers/memory/da8xx-ddrctl.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/memory/da8xx-ddrctl.c b/drivers/memory/da8xx-ddrctl.c index e8f9b3f461f5..872addd0ec60 100644 --- a/drivers/memory/da8xx-ddrctl.c +++ b/drivers/memory/da8xx-ddrctl.c @@ -102,14 +102,12 @@ static int da8xx_ddrctl_probe(struct platform_device *pdev) { const struct da8xx_ddrctl_config_knob *knob; const struct da8xx_ddrctl_setting *setting; - struct device_node *node; struct resource *res; void __iomem *ddrctl; struct device *dev; u32 reg; dev = &pdev->dev; - node = dev->of_node; setting = da8xx_ddrctl_get_board_settings(); if (!setting) {