Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp2444094rdg; Mon, 14 Aug 2023 02:43:44 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHXaP5CViie5Qytxn5FWDCUKfqm0Ce71KFH0zIajQ9ol6nV3h2S4xCY+mfWTFrA30BEW5lK X-Received: by 2002:a50:fb8f:0:b0:522:b1cb:e6c with SMTP id e15-20020a50fb8f000000b00522b1cb0e6cmr6104027edq.38.1692006223731; Mon, 14 Aug 2023 02:43:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692006223; cv=none; d=google.com; s=arc-20160816; b=rgfg/IN9b332kXEbrp3AYs8Fhr1VXN3jjZ43NQrh62bm7jF1htf75++90tYtSeGsig +Tft1WeoSBrNJj6jmG8Cp5mc0//+E0GTylbmJviIHxJ3EN15K9P1Lc9vGRdqujrBu0NH e+memiFy7lewh9gokR/1yFOODJHqIgQb8FT9Tqhwxz0gVVHcg+9qAG0h7BEo8FJtQwvm M4o5CqE03PxGbBgf6O4vFfeJ9lECeKLjAguWz3k1xqSaC18aNbRppG0PxdO8h0/4p1Hs KQtE3GXR9VoInWNxyCLJp+DedDPjq4nAPpT3uS8p1dLQleU3nnIIX7Mg29abZzoCZPbB VNrg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:message-id :in-reply-to:subject:cc:to:from:date:dkim-signature; bh=xRXeod91pYoxqaBCkF9oYYQzAQoXDUtZ70yvC8IEKM8=; fh=2EMMm43jzajNn4oQyLuHF+oFZeERxjTteId25f7metg=; b=i1qJV1taFD4rdCNRJTHU1Ua1G3vK+bVmwJmKboEk1kHo98WPmt1gutopsTN1IJb9jr DfW8A5rSO0nQjwHlagyFlAIfxZ4PLB+FBUP6hU4BWLCJ+BgzV2ORpiYNGYNsfnW3Kt1c aBGTLuCwrXlwPBoPNslWQuwKCiHVWh9XCEdO+TOHtsbKcUROGgg36B4jXXnQ6Uo+v8O9 2BDhRyp7R0bAJArUKtSHVjAPGCVcO2x5V/Bsj4Um3qLOL2JhkLKoEpwcdp3wdoXpfczm d0HEF1TwAJQmZYl9SEhsyVNBkqcim9ljtASATy9IacxjmsWDpFjWWbieX1UGkg1s8eSa tVxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=gS8AIES9; 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=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f15-20020a056402160f00b005216d397e43si7249368edv.494.2023.08.14.02.43.19; Mon, 14 Aug 2023 02:43:43 -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=@kernel.org header.s=k20201202 header.b=gS8AIES9; 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=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231563AbjHNJPp (ORCPT + 99 others); Mon, 14 Aug 2023 05:15:45 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47774 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235552AbjHNJPW (ORCPT ); Mon, 14 Aug 2023 05:15:22 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6D004AD; Mon, 14 Aug 2023 02:15:21 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 431D762A8C; Mon, 14 Aug 2023 09:15:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 736BAC433C8; Mon, 14 Aug 2023 09:15:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1692004520; bh=UnbYLbdWrIB2cXL2eCtQJBeGyCijgPtAVQK/KlNMhts=; h=Date:From:To:cc:Subject:In-Reply-To:References:From; b=gS8AIES9K3qT9NNb4p6wKdWIU2Y0Esec5F8jQa2fmYa8N/lsFeW4l8xPdk+l2IQkw 5n9vv7eOndlU1eHq7ZEMDxjn3Q4h4aS93Nku1L+c/zWAxUPyJpv5kXb99D9cnoJEGf qXX6j6V0YesiBuSnxhCh5KfuY6t3nTOq6BmzEcGSIeIjnrfZxpKDYTjeZcKuM2od+T USVGmHE7V+g2UGw0wP+N1Yq/NDNnmMEeHf88Zp/hRlURl+FkFlZx+Ch28sCVXgPZbI u/Ltd25bs1Mfwh1s4WAiE1sFY0FadVz1DsCW2O2/gPbsgcw4CbQq5wm2kakJNeIm8j jAfFAI4dod0hQ== Date: Mon, 14 Aug 2023 11:15:17 +0200 (CEST) From: Jiri Kosina To: Osama Muhammad cc: david.rheinsberg@gmail.com, benjamin.tissoires@redhat.com, linux-input@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] hid-wiimote-debug.c: Drop error checking for debugfs_create_file In-Reply-To: <20230530154252.7895-1-osmtendev@gmail.com> Message-ID: References: <20230530154252.7895-1-osmtendev@gmail.com> User-Agent: Alpine 2.21 (LSU 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham 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 Tue, 30 May 2023, Osama Muhammad wrote: > This patch removes the error checking for debugfs_create_file > in hid-wiimote-debug.c.c. This is because the debugfs_create_file() > 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_file: > https://elixir.bootlin.com/linux/latest/source/fs/debugfs/inode.c#L451 > > Signed-off-by: Osama Muhammad > > --- > changes since v1 > -In v1 the IS_ERR was used for error checking which is dropped now. Now applied, sorry for the delay. -- Jiri Kosina SUSE Labs