Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp920364rwd; Tue, 13 Jun 2023 02:07:38 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ7NM0GUwIns1XBnMdS8wOsdf1ymBQM3cWbNIAqxJ4VEcmSPJARUz7vxdQfd6HshKNVfCAjH X-Received: by 2002:a17:907:e93:b0:97e:32f:3b54 with SMTP id ho19-20020a1709070e9300b0097e032f3b54mr10517152ejc.19.1686647258310; Tue, 13 Jun 2023 02:07:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686647258; cv=none; d=google.com; s=arc-20160816; b=Lygd23d4DZSL2bkXrB6r6722bQfgyJ2taR/XFePboTd1ddR6UhbjKIxoqOp1YDX2kO H44+pv+p6fqVQnh9c+GKjhmt4NHwkJW2e63mfN/W/xqQjU0YR3FeYE+rnGEg5h7Iygqf UJ5I+VtNXt/2f7bR1sMq/1h1/ftRfUkTGgADbwAvklansDjvNSUdE7y3/hkNVsYatu+X 44MYpv6EIJtXHk72iAZyjAi16kZAKbnfGZ173+v47YoCJPdsseOmCA+AzH/jA8/QHk/0 qFFeYdl8gR5Bu29SFBnTItwe1CfqAvMFVURaz0okGMusu/qqoOy8XoJwAmGYVz6IU9Yr 2byg== 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=RNiICPsLQLIgFEOjAZE7SmBkD5zH7qfRQmETS3TMEtA=; b=m00Lw3YLyhInwasDAjTVXwneG35+AQO7obeE9qaOXeD01cVat4QP0U+kCGfEE6x1HV x1Ll6h+AmzkxnQ9PKNKwOgzmxKI7IHUC65pYncTYokJqQquDd7aVZCbRdx8j0KPqFJHl BJ1+N6bPmRcr/Fx0pg5LkEsXkBEBgxcQnpmbCLAxJzWMnlXgQC7Ab4lr1tv9ap1v060X uGzWeo+tn4DQrOJFIpKnFBaSH5J9aRQDtAnGjFF1/5TM+LXT/RT9p8yXH/gpi5RDYGoU j/zElKn56veKZCNEMNizTvmr1uZr5eA7wp0L97P8EKAGp49L61XJH0Xnrz9c5qZtI+cH +peQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eSmsgf9f; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gz22-20020a170906f2d600b00973771bddcdsi6737897ejb.685.2023.06.13.02.07.13; Tue, 13 Jun 2023 02:07:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eSmsgf9f; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 S241782AbjFMIlX (ORCPT + 99 others); Tue, 13 Jun 2023 04:41:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49626 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241667AbjFMIkm (ORCPT ); Tue, 13 Jun 2023 04:40:42 -0400 Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 773E1199E for ; Tue, 13 Jun 2023 01:40:29 -0700 (PDT) Received: by mail-wm1-x336.google.com with SMTP id 5b1f17b1804b1-3f8c74af64fso4090245e9.1 for ; Tue, 13 Jun 2023 01:40:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1686645627; x=1689237627; 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=RNiICPsLQLIgFEOjAZE7SmBkD5zH7qfRQmETS3TMEtA=; b=eSmsgf9fjF/TSYZCNneFweS+x2xAzcFBp/E4Jnq6I/bXUrC9r6x5pGyx52+kM+M27g 3IlTpZ2S88CCKS9NXoJmUH7z8mPhMblDrbIBizobA6VG5nJW2R1S05WjFPGMKp7aOkYM HvItcOnShrcUlL+CBtHP7ZRG3VFbPAxAk+hOieQ00z6r5DuGgQorZCng74pv/+NZu+c9 P/iPmA1pGpxVwYLku/outN50DM/tIXsBV1t04fBDb0bSxI3PXtE0P6mRHqKztE5ahE4p 5shdVpQ0Q3i2yX90M4Eh8aI2UFXNaH/dETqzEuTm8uonqviul+XQi6lAAL+X8frfdojX w/eQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1686645627; x=1689237627; 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=RNiICPsLQLIgFEOjAZE7SmBkD5zH7qfRQmETS3TMEtA=; b=ZuVnQqevnJzt++JjPYCL+YWdt2gszpcbwLkzNFhnesc1Wc+VuZ3KPAddVjIr5MHliQ jB+CkMb2MaX5I4/iQQ0U8HxSFjxwog9qyT/3mGSrt8XE1dEoVCh0HSECjNps/MjxMRvM MD8TxbkLT5AqvdM1F2CDpvKNbH8D87VeUoIFaAT7tiXeXGnBGWXRMJVZr9TnpM0w9leg RutXtYf1VloHg1yCW/heWyg4ZK7JOyCBtj/kKBwfHWQkMl2QCqSY8pDvIkWfPsMQURiw DkwXywu7G0jLksoC+DPQvAyD0Cn1oO7pW36fqy/wMwShH+qLrcNh0Zro5LkhvhiGnTa9 MbqQ== X-Gm-Message-State: AC+VfDzQGc8J+JYXWv0qq1amPL4/4Jppv3vEPjV7VXmHKwQsEVU+I+KC ll7Eepl/FiCbNE+m6Vh/rtvDnQ== X-Received: by 2002:a7b:cb90:0:b0:3f5:878:c0c2 with SMTP id m16-20020a7bcb90000000b003f50878c0c2mr8143809wmi.3.1686645627468; Tue, 13 Jun 2023 01:40:27 -0700 (PDT) Received: from ?IPV6:2a05:6e02:1041:c10:b5a8:28ff:af00:a97f? ([2a05:6e02:1041:c10:b5a8:28ff:af00:a97f]) by smtp.googlemail.com with ESMTPSA id o6-20020a05600c378600b003f42d8dd7d1sm13809957wmr.7.2023.06.13.01.40.26 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 13 Jun 2023 01:40:26 -0700 (PDT) Message-ID: <2b73ec3e-43e6-4fd0-034c-7541b6f53443@linaro.org> Date: Tue, 13 Jun 2023 10:40:26 +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] lvts_thermal.c: Drop error checking for debugfs_create_dir Content-Language: en-US To: Osama Muhammad , rafael@kernel.org, rui.zhang@intel.com, angelogioacchino.delregno@collabora.com, DLG-Adam.Ward.opensource@dm.renesas.com, amitk@kernel.org, wenst@chromium.org Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org References: <20230530172439.13683-1-osmtendev@gmail.com> From: Daniel Lezcano In-Reply-To: <20230530172439.13683-1-osmtendev@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 30/05/2023 19:24, Osama Muhammad wrote: > This patch removes the error checking for debugfs_create_dir > in lvts_thermal.c. This is because the debugfs_create_dir() > does not return NULL but an ERR_PTR after an error. > The DebugFS kernel API is developed in a way that the > caller can safely ignore the errors that occur during > the creation of DebugFS nodes.The debugfs Api handles > it gracefully. The check is unnecessary. > > Link to the comment above debugfs_create_dir: > https://elixir.bootlin.com/linux/latest/source/fs/debugfs/inode.c#L451 > > Signed-off-by: Osama Muhammad Is this patch tested ? -- Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog