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: 9700179 X-Patchwork-Delegate: eduardo.valentin@ti.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 8B28B60245 for ; Wed, 26 Apr 2017 01:50:44 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 789AD283BA for ; Wed, 26 Apr 2017 01:50:44 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6BE0E28497; Wed, 26 Apr 2017 01:50:44 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B55F1283BA for ; Wed, 26 Apr 2017 01:50:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1434505AbdDZBum (ORCPT ); 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 X-Virus-Scanned: ClamAV using ClamSMTP 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(-) 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);