Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1043862ybb; Wed, 1 Apr 2020 14:38:15 -0700 (PDT) X-Google-Smtp-Source: APiQypIy1YeijH5Ga4CVqXhakdXX4IZfuZ9SC+O2XICOUWORmMJl7tIM/avOWvGhANfu/PjVOwlX X-Received: by 2002:a05:6808:8db:: with SMTP id k27mr306193oij.175.1585777094928; Wed, 01 Apr 2020 14:38:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585777094; cv=none; d=google.com; s=arc-20160816; b=YPpV8Yuls90CBBt0haAjoVX2wKfwMerrDix2PEaxNLzsyipjd6nGHN/ZQ8fxrbSqmh IXUeEwpfy6og+9G7eq212yXOqXwJ1I0GrWEpn9b6l1OxpuMqhC0QxdGlSjdfUbxG4r/W mCayttNVOPMLbsovu/bJJhBtIB9jrGhvwKLHvAdudkanIi3EOO1NiESE7cS0FWaw5V+m XeK0Lxxo8TMHHC0Otc8vevAacM4wrzc5/qiJ2hXVPWD4pcalRD41Psq3luHFxCHsJoE7 O5vV3bAU6e4kU7dp5Crg7uupuTJ8SP0Se/9i4Z9EpWW+8O18yUlm21mV5HzWqcUXzG/H ASZw== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=l07y+AYErDsmkAO0qi8CbpBmBUpbx+bUavWCzQ/FZno=; b=NEqBuxvyYawaQBrRMoGX6Fa646ijiuaeGhIsidsxdPHAXs7p1Cp3xbaxmQCmt7r5OD SfRxaVZIjXmMIj0vrnE0bw+RweXonzmXMDYtr4I+brRCkELTdSqDYXiKtWDF6qMH73qF IeaEHWMJOtd8WOCFrGhjTHWKcqKsljuHPPvieSED98p9ikUxu7pyfOiqbEH0ehJJyqh6 VZ/y0d8KR29USJmUteD/upUQZo10j8uJ3cTLMqWR7w9jC1Fl+0k7o8aWQSJlqhbL7BUm BUT5PGOh7va85K4NZtacFsGZLWJ4ns/VE0JMCIfAyGuq2ML2svVr6LhBDb8fGtv3M5rH UUBQ== 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=collabora.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w188si1371539oig.183.2020.04.01.14.38.02; Wed, 01 Apr 2020 14:38:14 -0700 (PDT) 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=collabora.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1733043AbgDAVhl (ORCPT + 99 others); Wed, 1 Apr 2020 17:37:41 -0400 Received: from bhuna.collabora.co.uk ([46.235.227.227]:34556 "EHLO bhuna.collabora.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732337AbgDAVhl (ORCPT ); Wed, 1 Apr 2020 17:37:41 -0400 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: ezequiel) with ESMTPSA id CB6742976A1 From: Ezequiel Garcia To: linux-media@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org Cc: kernel@collabora.com, Hans Verkuil , Ezequiel Garcia Subject: [PATCH 1/3] rkisp1: Get rid of unused variable warning Date: Wed, 1 Apr 2020 18:37:19 -0300 Message-Id: <20200401213721.24173-2-ezequiel@collabora.com> X-Mailer: git-send-email 2.26.0.rc2 In-Reply-To: <20200401213721.24173-1-ezequiel@collabora.com> References: <20200401213721.24173-1-ezequiel@collabora.com> 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 If CONFIG_OF is not selected, the compiler will complain: drivers/staging/media/rkisp1/rkisp1-dev.c: In function ‘rkisp1_probe’: drivers/staging/media/rkisp1/rkisp1-dev.c:457:22: warning: unused variable ‘node’ [-Wunused-variable] 457 | struct device_node *node = pdev->dev.of_node; Rework the code slightly and make the compiler happy. Signed-off-by: Ezequiel Garcia --- drivers/staging/media/rkisp1/rkisp1-dev.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/staging/media/rkisp1/rkisp1-dev.c b/drivers/staging/media/rkisp1/rkisp1-dev.c index b1b3c058e957..5e7e797aad71 100644 --- a/drivers/staging/media/rkisp1/rkisp1-dev.c +++ b/drivers/staging/media/rkisp1/rkisp1-dev.c @@ -454,7 +454,6 @@ static void rkisp1_debug_init(struct rkisp1_device *rkisp1) static int rkisp1_probe(struct platform_device *pdev) { - struct device_node *node = pdev->dev.of_node; const struct rkisp1_match_data *clk_data; const struct of_device_id *match; struct device *dev = &pdev->dev; @@ -463,7 +462,7 @@ static int rkisp1_probe(struct platform_device *pdev) unsigned int i; int ret, irq; - match = of_match_node(rkisp1_of_match, node); + match = of_match_node(rkisp1_of_match, pdev->dev.of_node); rkisp1 = devm_kzalloc(dev, sizeof(*rkisp1), GFP_KERNEL); if (!rkisp1) return -ENOMEM; -- 2.26.0.rc2