Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1E72CC27C7A for ; Thu, 17 Aug 2023 07:33:11 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1348487AbjHQHcm (ORCPT ); Thu, 17 Aug 2023 03:32:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:32938 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1348514AbjHQHcU (ORCPT ); Thu, 17 Aug 2023 03:32:20 -0400 Received: from mail-wm1-x32a.google.com (mail-wm1-x32a.google.com [IPv6:2a00:1450:4864:20::32a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5F2EC268D for ; Thu, 17 Aug 2023 00:32:19 -0700 (PDT) Received: by mail-wm1-x32a.google.com with SMTP id 5b1f17b1804b1-3fe12820bffso67970705e9.3 for ; Thu, 17 Aug 2023 00:32:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1692257538; x=1692862338; 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=/lfeGgarqr8pvmcuCLypxJFrX3Z81nCjpOrSpMVIpPo=; b=yT5FAOhF6gcp8/gcIoR9hoFCQJmlkdyfZWyH2eFpTg/OvWV/if8NXZNBwvUksR+zb1 nf/MYJ/8OfcqlfFnZBDr5weV0HaaluaoGl3ythidYiFlfFmw6Fx6vfTJBDdzXyo2oOdb xq/cfluT5fVb823uvGRbSIh8ekssBRq4Dkeg1B4nt9bcnIQ7bsEs4W2Y8ngF+JhplLPx j2xp/SmQ/ecnEY08x6gDn2wBxMen4AnePopH8kBSU537TBeOKvwSqCEJpdiCTmmgOJQD U0Spk4dCF41PH/KkIcrimH4FQewtaEEKUHemawCXlYgdfFkAo4Ri8uvRbCQ3AGB9E/Iq JTQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692257538; x=1692862338; 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=/lfeGgarqr8pvmcuCLypxJFrX3Z81nCjpOrSpMVIpPo=; b=bfHEOhJxB3VJLcX4L+gMgoUbmPrLlBXiSpxXGxDjbNzrG+Ndy+dI/IuDzYKKvpnIN3 6f2N9jLS33e3G67JKfej4Mbv9uWLPxEFSU3WLOyhxmdbMJ1xbT91VUuDrhLMN/Ddlb6A 2Q+hE5yC9yqyb/dHTcW+aU21W5YSwCYwoXa7xYqTL0RYj1ZDV0pA7+ViAgL61uFXgFm+ qBJaGYYWJBcbbu9/+rKV7h/PkZzl0R8KyO0m0bmjcUHlqxScbczbrUJIYEIRKT+8/dAy BhAN6PiMbV035dqLuFkzNcUK9GHcPaVnnwhFcqlHogNYV2g0v/p4DMMUCKHLOW6PWgrx kmNA== X-Gm-Message-State: AOJu0YzEscDdhmneCco/sbcCYUG8rBDeoJ3I0OVcfDP9LHsCsurqBOHK 7rQT7/SbCAYAvKN9lA0IXgI/kA== X-Google-Smtp-Source: AGHT+IGAyVzAPE7vkoVKh0iPQCvd79KGjFUfpsbg7VM5Ch/A1X9FCDTW1jbLAH3G+3USuhoP2d3rEw== X-Received: by 2002:a1c:ed13:0:b0:3fe:111b:7fc4 with SMTP id l19-20020a1ced13000000b003fe111b7fc4mr3356597wmh.21.1692257537924; Thu, 17 Aug 2023 00:32:17 -0700 (PDT) Received: from [192.168.10.46] (146725694.box.freepro.com. [130.180.211.218]) by smtp.googlemail.com with ESMTPSA id e11-20020a05600c108b00b003fe557829ccsm1920787wmd.28.2023.08.17.00.32.17 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 17 Aug 2023 00:32:17 -0700 (PDT) Message-ID: <5c641067-fe4a-b515-9c04-32ec82b2c68a@linaro.org> Date: Thu, 17 Aug 2023 09:32:16 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.11.0 Subject: Re: [PATCH -next] thermal: ti-soc-thermal: Use helper function IS_ERR_OR_NULL() Content-Language: en-US To: Li Zetao , edubezval@gmail.com, j-keerthy@ti.com, rafael@kernel.org, amitk@kernel.org, rui.zhang@intel.com Cc: linux-pm@vger.kernel.org, linux-omap@vger.kernel.org References: <20230817014900.3094512-1-lizetao1@huawei.com> From: Daniel Lezcano In-Reply-To: <20230817014900.3094512-1-lizetao1@huawei.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org On 17/08/2023 03:49, Li Zetao wrote: > Use IS_ERR_OR_NULL() to detect an error pointer or a null pointer > open-coding to simplify the code. > > Signed-off-by: Li Zetao > --- Applied, thanks -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog