From patchwork Mon Dec 14 23:38:08 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 343591 Delivered-To: patch@linaro.org Received: by 2002:a02:85a7:0:0:0:0:0 with SMTP id d36csp3433490jai; Mon, 14 Dec 2020 15:44:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJyJhxangf0HLsCU1Br4IhBsB07uq0Tou1m+0kbmdDwiT2u+3nY/LNDS+M6Lisbs3R11/4Nx X-Received: by 2002:a17:906:7f11:: with SMTP id d17mr24627607ejr.534.1607989451433; Mon, 14 Dec 2020 15:44:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607989451; cv=none; d=google.com; s=arc-20160816; b=Nwk4YtE2h+/PviC6NKfJUfkXjZDJ7Mpa48XbOISlS8nkCTInI+al2pWGJKerNYIXrR 23IMwbKPQKb/vib9wDUji/p/dz9bKKGgNilo3lz550drxWUvgNwT6vuuYt85mj0fEeX6 Wx+teipvGEeLdqoctwjLcGKhtbbM5o+1pDgehZZvdzH25WLaxhMlbsLCtvvNAvHqnIbi 44t6JAt8cf9NQF9PeWbrbfOW0k2K5f9rFlqnQydqpVnFKtKJNbjZLjhEJxHFzRicM1yX 9KJtt1PXEz4Pxq5FYWP1WDm87s/LWTDL5EHIjyEE1E6Fwhdr4b8++LjJNTwJmvcXlLOG dI5Q== 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=QWXJUyUDL6eu7RO/n8ICRK6Ji2MuYrA37UEb88mnHS6YHB6J4QdKPY7HrbKVR9xOpY a8DvPHqs7qBtEcYZhuPXUjGTUcss4gm8v/yuV9+f3Kh4tLfHVbdPNk3jFVA1GjWw0IWq 4+4a/h5/7yQlw49oaJ+EAi1o+tiGz/7ajCjvnK8Outgu3eudoPmZlKU7khjX3TsfBRdM oMNzY5u4tYeqq3vP6sd3xhTtlKZhtlL0rdINFX3jVrRIc7H0BjOxZsf01W0E7lmX+WOW 29ulVI7LXPGCQikvkCrX9nzCFYCknhCWUtb3WBvyQq2zBbPY5QCH7TJ0jn6cPbsvLIX/ 6Msw== 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-pm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-pm-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 e7si85377edq.202.2020.12.14.15.44.11; Mon, 14 Dec 2020 15:44:11 -0800 (PST) Received-SPF: pass (google.com: domain of linux-pm-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-pm-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-pm-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 S1725948AbgLNXmw (ORCPT + 8 others); Mon, 14 Dec 2020 18:42:52 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46722 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727134AbgLNXlJ (ORCPT ); Mon, 14 Dec 2020 18:41:09 -0500 Received: from mail-wm1-x343.google.com (mail-wm1-x343.google.com [IPv6:2a00:1450:4864:20::343]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0C7B0C0611CC for ; Mon, 14 Dec 2020 15:40:05 -0800 (PST) Received: by mail-wm1-x343.google.com with SMTP id k10so15285881wmi.3 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=g011Dtx+Hkwbzi1jKsNWUZfNJxQzmcy8DLzN3LA7PAXoc0rcrobvs7EBqch9B7mHfe w66mVD7soaAtILUp//bABLIUGgokrtA3DFsfOkzINKqk+i9Sg8mn/fDMuHRtlJvuM+t+ VlSldNqucpWU3wRQxL6Wm5qmn7Xc1Ce8eKlxX6togfof7gA8CCeiHii4JstKYfK0Sf30 FOQqayrZRTPkssHzgILshjq56g2buVroPGMpoJnY2Enuq6SLa51seJZ15B9iwsbaE8Lc stercpKybe000uvCSOWv9MLGeL12RSMc6KMsrCcT+sekKvZtMtWUfS0P1YNuvT3CcOHh X4IA== X-Gm-Message-State: AOAM5331nZNWM7Bx9fRV8oEETE1sDTz+TEE0J9YWu4V5OwRZPxYrEGQR 02Qv5JdQYqW+ZilHcIecpfIFuibxfK4L9Q== 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 Precedence: bulk List-ID: X-Mailing-List: linux-pm@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(-) -- 2.25.1 Reviewed-by: Thara Gopinath 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) {