From patchwork Wed Apr 26 01:50:02 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 98230 Delivered-To: patch@linaro.org Received: by 10.140.109.52 with SMTP id k49csp107946qgf; Tue, 25 Apr 2017 18:50:44 -0700 (PDT) X-Received: by 10.84.214.130 with SMTP id j2mr22663740pli.133.1493171444462; Tue, 25 Apr 2017 18:50:44 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b69si23636985pfl.158.2017.04.25.18.50.43; Tue, 25 Apr 2017 18:50:44 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-pm-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=@nifty.com; spf=pass (google.com: best guess record for domain of linux-pm-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-pm-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1434505AbdDZBum (ORCPT + 14 others); Tue, 25 Apr 2017 21:50:42 -0400 Received: from conuserg-11.nifty.com ([210.131.2.78]:39454 "EHLO conuserg-11.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1434504AbdDZBul (ORCPT ); Tue, 25 Apr 2017 21:50:41 -0400 Received: from pug.e01.socionext.com (p14092-ipngnfx01kyoto.kyoto.ocn.ne.jp [153.142.97.92]) (authenticated) by conuserg-11.nifty.com with ESMTP id v3Q1o8en022661; Wed, 26 Apr 2017 10:50:08 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-11.nifty.com v3Q1o8en022661 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1493171408; bh=gkmXinBBKkdmPlbnvAFGnaPEvPcgOeDi9V78CIIBpyE=; h=From:To:Cc:Subject:Date:From; b=JN/WO8Msh9FYC/b8ptGaYwImZqYqHHoN3bP+4mIZGnP+LOxdOXCJy4hCJwTxEH7rQ /UV+vcKk6RDc+A7KDZw/OLQ+aX0FuwRhZF34O02c62Rjldk4QcisTIK0lh7r4m0jzY pJ27dBKJt9kUoQ3jaPuyQy3wjYZPXG5FHtVlaleAM3GPA23smof5xQvxl2oItJ1pIL 6y+X4IGdfXhdlUASPcZQ8a+058cg9VdyJx+fZzA58++ofUlnBfu5noHPLZgwaziI9h U2tmjp0OyZZyCq/nmAYIMAR9ZYbc/yJ3riwDi9HtNFRhNKQg+w3taUJumz4UXiggKr mICJSMYNzFa1w== X-Nifty-SrcIP: [153.142.97.92] From: Masahiro Yamada To: linux-pm@vger.kernel.org, Zhang Rui , Eduardo Valentin Cc: Masahiro Yamada , linux-kernel@vger.kernel.org Subject: [PATCH] thermal: qoriq: remove useless call for of_thermal_get_trip_points() Date: Wed, 26 Apr 2017 10:50:02 +0900 Message-Id: <1493171402-32479-1-git-send-email-yamada.masahiro@socionext.com> X-Mailer: git-send-email 2.7.4 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org Building this driver with W=1 reports: warning: variable 'trip' set but not used [-Wunused-but-set-variable] The call for of_thermal_get_trip_points() is useless. Signed-off-by: Masahiro Yamada --- drivers/thermal/qoriq_thermal.c | 3 --- 1 file changed, 3 deletions(-) -- 2.7.4 diff --git a/drivers/thermal/qoriq_thermal.c b/drivers/thermal/qoriq_thermal.c index 644ba52..4362a69 100644 --- a/drivers/thermal/qoriq_thermal.c +++ b/drivers/thermal/qoriq_thermal.c @@ -195,7 +195,6 @@ static struct thermal_zone_of_device_ops tmu_tz_ops = { static int qoriq_tmu_probe(struct platform_device *pdev) { int ret; - const struct thermal_trip *trip; struct qoriq_tmu_data *data; struct device_node *np = pdev->dev.of_node; u32 site = 0; @@ -243,8 +242,6 @@ static int qoriq_tmu_probe(struct platform_device *pdev) goto err_tmu; } - trip = of_thermal_get_trip_points(data->tz); - /* Enable monitoring */ site |= 0x1 << (15 - data->sensor_id); tmu_write(data, site | TMR_ME | TMR_ALPF, &data->regs->tmr);