Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp312157rdb; Thu, 30 Nov 2023 05:39:31 -0800 (PST) X-Google-Smtp-Source: AGHT+IHkEr/VCvMeRRlvyN3xxbtkob4gDPvOiMv12gHlZ4mzWy8vbAkP+iSSSwkj2dvDPXGqgnS5 X-Received: by 2002:a05:6a20:d396:b0:18b:d31f:7d25 with SMTP id iq22-20020a056a20d39600b0018bd31f7d25mr25563518pzb.38.1701351571642; Thu, 30 Nov 2023 05:39:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701351571; cv=none; d=google.com; s=arc-20160816; b=EUvHbgfu/qNV1NOhCiJMjkILbDSx84/exkC/f9xX5SrNU57pGmA//hgIEaW9wJEy2A vHzRPXopdvZ375ZEpBvLjzsiTw5eME2XG77xbJakjrYXeqCXfdZdM/afZroP/XNlL1+p WkHXF01Kwp7LMsbgX1hVuQ3ABDkvM5lsVJ2Iq+rfVasnbutE4y3F8Nz2Vi0X3p64CyBM BmdDGc6lMW7f9VY6kco2eR1h+G008T5Quzw4Sib3dXb5US2q6cSZ0dCTbIR4E/t7u9Z/ 63QVpYdKlbi/rPMUuiPHffx2UBS1/L5ZeyijZJo1oE7VISUzKXTXipUckAJo/nNQGGqj SJSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version; bh=OSp7sdh3FqefRT8T5/hD6RrEw2NiuazXLePddZGK4NQ=; fh=RjkRc/FhKx0ouKQ9JcARy/W3YEos4nBH55yWPTBs/m8=; b=k4L3iDVUlyn5fsekE7ccb5NFniXXiUEbg/+5DYPRHLIzi8jxIWEr9IDMR4nTvSVqRA PK5O6bS/xkcWKnECEXd/TUA1K1JvXOPqmcdmsBP5jv/SEjltsmkckz30PLENO8fvmlaK +snw5TkPPLa/h+FvV1KT8QQyiAN8fLCzGicuJAtLMREesGSZL0EkufqUqXWoT1a5q/4q ObmKEVDl2YK89oWWPlfpVJ7Ox3iZZ9+LM8gHJqOcXT9h9RGmT65bX189u8zd9t5IXADK oWp/6FLOeJ1j+pZb4CEDcHIQaxENCHkoqSEqFmKekRuZaTj6zK25wd+oTx0mFgsXWtwo Z+mg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id d1-20020a17090ab30100b002859ad34f7bsi1336759pjr.92.2023.11.30.05.39.30 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 05:39:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id 0E76F80CCD83; Thu, 30 Nov 2023 05:39:29 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345627AbjK3NjP convert rfc822-to-8bit (ORCPT + 99 others); Thu, 30 Nov 2023 08:39:15 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36514 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1345612AbjK3NjN (ORCPT ); Thu, 30 Nov 2023 08:39:13 -0500 Received: from mail-oi1-f178.google.com (mail-oi1-f178.google.com [209.85.167.178]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 362B019F; Thu, 30 Nov 2023 05:39:18 -0800 (PST) Received: by mail-oi1-f178.google.com with SMTP id 5614622812f47-3b83d207806so64825b6e.0; Thu, 30 Nov 2023 05:39:18 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701351557; x=1701956357; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=K5jyVOgN/zGkO95v6a4uyOCDdbZc7HWZPbityHquTEA=; b=FD0a6ZiSLwmiKV7YPr2+AjfNoHK4U+rRJ9l2K8CGq2v+cURoVJCVBiUHjHxBmCnoi5 1EqYyClcvn9YB2fE7Mcdzs06xKglw/MITlzjhZ87EuYea7HtRWL9dkNepMzgZ0FEPhHF DvRw7q5ZmT4HnVa7xPzfWq/0d3J6EVg5a0WLEIkazPeUcjsOahF9x4ggU4AJsdvhpVU9 rBcp/kE5m+cFINirAV0Q92QOATAN1YUGsDBndPgqiBR29czhGYRDRd1blnhuFTJsz2ab 76A8PM3s9g5d0JK4bdlXGdzz48nQHaQl6kynkN/mWd59KvSJnxvKXHtTEXBEBO2gMjcp VP7A== X-Gm-Message-State: AOJu0Yzq7Xx0jGfbw/LLU2HpOQ+EmWzNWbyBkLYXj3tA46nR6QH+cFEv pkr37W3a7bWiqvxHHR/FJxVcb+Yu369EFf6w5ZfrzxXG X-Received: by 2002:a05:6808:128d:b0:3b8:4478:8124 with SMTP id a13-20020a056808128d00b003b844788124mr28654805oiw.5.1701351557464; Thu, 30 Nov 2023 05:39:17 -0800 (PST) MIME-Version: 1.0 References: <12350772.O9o76ZdvQC@kreacher> <4897451.31r3eYUQgx@kreacher> <185c1c0e-c9f8-416b-8bcf-34070b1d8a37@linaro.org> In-Reply-To: <185c1c0e-c9f8-416b-8bcf-34070b1d8a37@linaro.org> From: "Rafael J. Wysocki" Date: Thu, 30 Nov 2023 14:39:06 +0100 Message-ID: Subject: Re: [PATCH v3 1/2] thermal: trip: Drop a redundant check from thermal_zone_set_trip() To: Daniel Lezcano Cc: "Rafael J. Wysocki" , Linux PM , LKML , Srinivas Pandruvada , Zhang Rui , Lukasz Luba Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.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 (lipwig.vger.email [0.0.0.0]); Thu, 30 Nov 2023 05:39:29 -0800 (PST) On Wed, Nov 29, 2023 at 4:26 PM Daniel Lezcano wrote: > > On 29/11/2023 14:36, Rafael J. Wysocki wrote: > > From: Rafael J. Wysocki > > > > After recent changes in the thermal framework, a trip points array is > > required for registering a thermal zone that is not tripless, so the > > tz->trips pointer in thermal_zone_set_trip() is never NULL and the > > check involving it is redundant. Drop that check. > > > > No functional impact. > > > > Signed-off-by: Rafael J. Wysocki > > Reviewed-by: Lukasz Luba > > Acked-by: Daniel Lezcano Applied, thanks!