Received: by 2002:a05:7412:2a8c:b0:e2:908c:2ebd with SMTP id u12csp2037372rdh; Tue, 26 Sep 2023 10:20:48 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEtqWzP+95cDpIxv15Xb5dOiJkjldLM7a+Ll9fM+3WpaYMqkS0XHFEvyhnzIMkTmOsJPf75 X-Received: by 2002:a05:6a20:9704:b0:14c:7e3:149b with SMTP id hr4-20020a056a20970400b0014c07e3149bmr8722902pzc.62.1695748848389; Tue, 26 Sep 2023 10:20:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1695748848; cv=none; d=google.com; s=arc-20160816; b=iWwDzb6D339XECo2tBFJt8xWcrfSsc4osT0NHaoW82kRJqu/pcr3ddKcr6U9vzz/+0 crxo0Wmvuu7CcselVdygN9IDI8kl0BsYdTI44TF2Xpl9ZVWC4wfkD1ct8S9BHHEQi4vt VCtIma6cczuZTpIH1pdj8JkR1dlgmZnZErW+Hv9/CkJmIXiX5+xeSiqWJK3MXjqinfy3 4aDwWeFl4RgduPE3dAEwkWLPHx8mNWF/u/bY5zITyIfN4psWWh/1uZKX4MUIgevR1v4e +HHGEH4bySNGpGM5J0pKPtODIkvhWgewJ9vRa/HTWyABRveCs45csXxFK4NsMw5JcJNW NyBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=vzS+keettZOd01HN2xZh16fkUfdIkcS5wOJyuirXrFQ=; fh=CaZRGL1dBlPpJ2RSCgRg7UcRIzMusExBjXyfx851CvI=; b=AUdbSYmFLbQ69qxMHq/XUuIHs1vgOAcW7gwHqLFG8GdeuCe7Y5opBsuINRsx5evSXc EuKMnLIPwSjXZ6jvSAYHJXCbMzWOHftgTTcPMIRHUplydfwpBOD6t52LM5wLTBTNV8YI +OP2W5NmAgY6tnL65q4sv1NWfp87Jj3devqUCrUCKhU97iwEU425Il+xUnGWF0i/x2dW wNiJPjECCqO81feJuiplIVdiKflC75DwGBDLqIDWGM5UWWKAS0jEP9xvXEH6kJwh67KL 70IOcrGy9JjYA2ZDup4PQ//zOt/Qex6zD1ti9Ck+4ZJ1Xf0kDhV7kWNG6AdaE22Ai19G IO2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vBDycfen; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id bt8-20020a632908000000b0057762236debsi12937495pgb.546.2023.09.26.10.20.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 26 Sep 2023 10:20:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vBDycfen; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id BC30E81E5578; Tue, 26 Sep 2023 06:48:34 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234870AbjIZNse (ORCPT + 99 others); Tue, 26 Sep 2023 09:48:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45384 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234866AbjIZNsd (ORCPT ); Tue, 26 Sep 2023 09:48:33 -0400 Received: from mail-wm1-x331.google.com (mail-wm1-x331.google.com [IPv6:2a00:1450:4864:20::331]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CD001B4 for ; Tue, 26 Sep 2023 06:48:25 -0700 (PDT) Received: by mail-wm1-x331.google.com with SMTP id 5b1f17b1804b1-401d6f6b2e0so66699435e9.1 for ; Tue, 26 Sep 2023 06:48:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1695736104; x=1696340904; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=vzS+keettZOd01HN2xZh16fkUfdIkcS5wOJyuirXrFQ=; b=vBDycfenJxqwpInoOeWzjshvAsTBnOy4MDP/9EtSvgNA3r7lEi1kUHh6eIWm8z0Rqw fVdg7sIKs/bYqN6a9QibDGgj2zN2Z5Ac5Xz1g/WvvIbQUT79vBh17aDjiZoHo6I5WQR8 DhCMWijYspd9CVMwHyVJfbETZlkl0QYFU5rRTEreaWcmbO51gPIzFuyZFREpVQSgteNb F+BB9zxVNoETQuXuSgiN0vxCFu2YCZNrAXhaAChp6Us/1BhZJKSMxSm8nmiVCwlcD5Sp RpJold6epqwjTcj0YI2PW74i5g/Vf1uw/Z1/ERl4zQesX2Lu5mmFxLIDU2mTXjn+UC8r juRQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695736104; x=1696340904; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=vzS+keettZOd01HN2xZh16fkUfdIkcS5wOJyuirXrFQ=; b=Pj/H6sCw9cxxYSq3UEkEQTesutLZAjG62+pI8/rEFtdBwAPLV3WVvwvw984NrO6RRM Vcd8fLwuPMRubcIXt6CQRpxZQdMvUtCbpw2+yLFWAHVMcZGnR16cULYe+oommVHsLGh9 BtTadVa0Ev1pvrQ2qyE8Bhk0D2jJ+Cqt6rNFnyfiPI1548zuUqtdyiI2MCtPSDF4xPzC c+GkUrR15VqNEUWEA9/6LGGlg+0B4sXIQmAZT2N6UVVoptJ1WZnM4vCAqsiB6QLmcmjM Rz23j0FIxWXXc7lqsqgCS9EoVAotLwVSNI1unnwUxRacCwCit37LYy1TSRKIIdVFO9Rp EdSg== X-Gm-Message-State: AOJu0Yyo54M9oWNKJXLNo0oMzIW/6G0zP7a2leJ2LjMRJYWXj9kJC2mU y6U6dRdeE1UKpIXvhQj/lLx9OQ== X-Received: by 2002:a5d:63c9:0:b0:31f:335b:f436 with SMTP id c9-20020a5d63c9000000b0031f335bf436mr2092424wrw.22.1695736104266; Tue, 26 Sep 2023 06:48:24 -0700 (PDT) Received: from ?IPV6:2a05:6e02:1041:c10:c49e:e1a5:3210:b8c0? ([2a05:6e02:1041:c10:c49e:e1a5:3210:b8c0]) by smtp.googlemail.com with ESMTPSA id v11-20020a5d610b000000b0031435731dfasm14715049wrt.35.2023.09.26.06.48.23 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 26 Sep 2023 06:48:23 -0700 (PDT) Message-ID: Date: Tue, 26 Sep 2023 15:48:23 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH v1] thermal: core: Drop redundant trips check from for_each_thermal_trip() Content-Language: en-US To: "Rafael J. Wysocki" , Linux PM Cc: LKML , Zhang Rui , Srinivas Pandruvada References: <5981326.lOV4Wx5bFT@kreacher> From: Daniel Lezcano In-Reply-To: <5981326.lOV4Wx5bFT@kreacher> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Tue, 26 Sep 2023 06:48:35 -0700 (PDT) On 19/09/2023 20:59, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > It is invalid to call for_each_thermal_trip() on an unregistered thermal > zone anyway, and as per thermal_zone_device_register_with_trips(), the > trips[] table must be present if num_trips is greater than zero for the > given thermal zone. > > Hence, the trips check in for_each_thermal_trip() is redundant and so it > can be dropped. > > Signed-off-by: Rafael J. Wysocki > --- Acked-by: Daniel Lezcano -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog