Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2975192pxu; Mon, 14 Dec 2020 16:36:13 -0800 (PST) X-Google-Smtp-Source: ABdhPJygWc1RzwzE17Zsf27grvyr3C5ROtgJsMxxrL7PGuS+Yw+xWrfxWWKh4pOw/e/0jprywisy X-Received: by 2002:a17:906:7aca:: with SMTP id k10mr7753176ejo.388.1607992572742; Mon, 14 Dec 2020 16:36:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607992572; cv=none; d=google.com; s=arc-20160816; b=UPyBxQA1m48BDbO/RuYHy4btedY922L0kaRgDvqG6EmeXuN8DmGmGOVS8V9hf40gOD tO3jSoiOxcdtFKeMM+TnuFkJ7s/gSFGJMP8ycQN0ArwapY5Wf5tW4/W3cRImH91yHBRg XUMd2h8JqYJSgVg5tdW35rtCPHn5a8OuqLUxnxwu5NI1U5087huA7oPsQ1plQ3vK8QWz xyVszlRuN4oGRpeKIBv84PP4mFKciADUCS2HlRcp05JiMCfb+pR9g5VRyHzFFgEgid+T haBwJRJG8FLxdQ2Z2We8Hhu14U988wvmnLO9291E2ZUJJzg+jDuPs73nlVMyThRFVNRF H0Iw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=PSByTdwbrz5R7qZA9VLp4ym5fJNRgGAvRPN2xEy9pYc=; b=XcWL+wxwhee/bWdRgNeRYsPw4U9QckyEHwdmuLmoCsA5Nv8Y5AGCh4ExzUi5FwgF+P Dy91u+3r+/7EeMhEBxHINKkgheWvNJSlsSZkDlxEqEOPfxbdhtVZMtSPsrLQuZ3ho6DM E068ke/6q6tLVw11C/HMVOE2Qvm/t1+pzuLkwC8Z9AMFF4muM0hCgSPqLfAJAi2uaU1g njeQlYwPbgJ5BLWaZwZmJTjIUWDeX5yCvx6sBpC5qCw0QTE3AJE0WxagjeoFW0uaakyn SRn9sbJ+fgqWXD7wIvt9OoS3VoxqhAeHPkq8tcsVG/kxg7PD0NdtL2uzieeX9CvgbbF0 l7Hw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CZFN82uN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n27si59204ejh.345.2020.12.14.16.35.49; Mon, 14 Dec 2020 16:36:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=CZFN82uN; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727484AbgLNXmm (ORCPT + 99 others); Mon, 14 Dec 2020 18:42:42 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46720 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727097AbgLNXlI (ORCPT ); Mon, 14 Dec 2020 18:41:08 -0500 Received: from mail-wm1-x341.google.com (mail-wm1-x341.google.com [IPv6:2a00:1450:4864:20::341]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0B7D2C0611CB for ; Mon, 14 Dec 2020 15:40:05 -0800 (PST) Received: by mail-wm1-x341.google.com with SMTP id c133so3271398wme.4 for ; Mon, 14 Dec 2020 15:40:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=PSByTdwbrz5R7qZA9VLp4ym5fJNRgGAvRPN2xEy9pYc=; b=CZFN82uNsZFeVmQ53zeRrnt1l/X2Jj8+DX5FzlDXKpXWD3WuApL+vW3EEsM+94jZXL +WetBXnywuq+Nhw9bDEicP7d+eAT/qyxjWmF3WAjpriilMWOta7OnkgnPgOhubaBPUnR pzw53cjcVpw1gTxsLR99aAPIhlwtLljL5N0KcGepVJ5OR6Ong/Hwsvy/lwnWJYUBv4fA A0T3C1fVowfp53e7/uYgiW0VTaDdMP3UTwxg2A/x0Wtel7BRu+op7E+MzcjqCqVtHW93 MkrBtSZNAISG1UDb6Cm0dNj4sGN9P+lUrocJb9pQF0/6CK80iL2OLwwvK31g2nsWsSyA EUIQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=PSByTdwbrz5R7qZA9VLp4ym5fJNRgGAvRPN2xEy9pYc=; b=Spq8NJZlQd+YxmLm0xxNgZJfgxVZLaEMQ3U8yzPjPmD2VBS2wI1ZetTCQhVyTpTVfe XM2cReC7jhhZTx4Ase299fu9PbbiNv1nQJPfHyovOcyqTgFXq5nQf7NMTWLAzyUeQRKu bonKoW3IlRozPMJx9/HCz20V9LIQAT2nHu2ApbXHoEsWC9r7cDuNoovjZ7zc5Vz+x/By 8//KL39qfxffpOP4DXhT/UJmfBbds69aUR0Q+s/jcbOYRXCoF5Ko00CJjIojHhdrei9M GnJiODNtrJZdJDTKPcEiKFTb3YS2IZzkVhFpsmITQpM131Z/DGUaeJSEoRSAR/qi+Eiy y6vA== X-Gm-Message-State: AOAM531fGGa3NA4uQx8zgTFBNhT5rGo9FIXDR48JBhAFIFWbfAI4yDN4 tL4LPKvfH2VVcbYgyOVCQZKZOQ== X-Received: by 2002:a7b:cd91:: with SMTP id y17mr29358339wmj.171.1607989203664; Mon, 14 Dec 2020 15:40:03 -0800 (PST) Received: from mai.imgcgcw.net ([2a01:e34:ed2f:f020:e842:4086:6f24:55a6]) by smtp.gmail.com with ESMTPSA id h3sm34145075wmm.4.2020.12.14.15.40.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Dec 2020 15:40:02 -0800 (PST) From: Daniel Lezcano To: daniel.lezcano@linaro.org, rui.zhang@intel.com Cc: mjg59@codon.org.uk, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, amitk@kernel.org, thara.gopinath@linaro.org Subject: [PATCH 5/6] thermal/core: Remove THERMAL_TRIPS_NONE test Date: Tue, 15 Dec 2020 00:38:08 +0100 Message-Id: <20201214233811.485669-5-daniel.lezcano@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201214233811.485669-1-daniel.lezcano@linaro.org> References: <20201214233811.485669-1-daniel.lezcano@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The last site calling the thermal_zone_bind_cooling_device() function with the THERMAL_TRIPS_NONE parameter was removed. We can get rid of this test as no user of this function is calling this function with this parameter. Signed-off-by: Daniel Lezcano --- drivers/thermal/thermal_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/thermal/thermal_core.c b/drivers/thermal/thermal_core.c index a0f0c33c8d9c..bcc2ea4f5482 100644 --- a/drivers/thermal/thermal_core.c +++ b/drivers/thermal/thermal_core.c @@ -710,7 +710,7 @@ int thermal_zone_bind_cooling_device(struct thermal_zone_device *tz, unsigned long max_state; int result, ret; - if (trip >= tz->trips || (trip < 0 && trip != THERMAL_TRIPS_NONE)) + if (trip >= tz->trips || trip < 0) return -EINVAL; list_for_each_entry(pos1, &thermal_tz_list, node) { -- 2.25.1