Received: by 2002:a05:7412:ba23:b0:fa:4c10:6cad with SMTP id jp35csp331413rdb; Thu, 18 Jan 2024 05:07:02 -0800 (PST) X-Google-Smtp-Source: AGHT+IHt4ziQuwtGb24g9O6nglaElxpqAusHhKK5NAKaJXyPgxrEHlNGdiPaTqTXo29R7conroOd X-Received: by 2002:a05:620a:4412:b0:783:841e:2c12 with SMTP id v18-20020a05620a441200b00783841e2c12mr28735qkp.9.1705583221812; Thu, 18 Jan 2024 05:07:01 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1705583221; cv=pass; d=google.com; s=arc-20160816; b=RFFKDGdLyW/RJJlLZceGl1hVkbv6XaoVcko8Lywz0cybx8QS0vZTJp7DkdNdKH7u0o nQvGAD0LcuX7q0TWcu4ynIL/0UCVpIC2oPzzkfnHL7LdMlnKnsBBUZJBjiNgcVdWrBVU ZaYWscWYbda4DQD5ZS8Q3WnA/D9dl1rObZF+rbvKWNUQROd7HSOOluHtNeXQEqAR1src ND9hj1Vyj+LV8rFm3ARWagvqCXINFxo7i/B90oH6ZRZQ9VsQw3XFzaOV81adrvBWuG/w N6tNaBEadh0T4yNEJrHsKYawzALWaB2kiscUINhGYuxEfzhbolH5+b6rq+kRK4ttVDO6 4Izw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=date:message-id:user-agent:cc:to:references:in-reply-to:from :subject:content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:dkim-signature; bh=Ih68nXl+NJDVjXp0XCB8wftpWOAFLCWUJxH9C1lYw0c=; fh=7MFOShDgdW+jcf1CFY6bA6AR/Nklaq2szFXtj3QA37c=; b=BiWeiDX9I78HUoVMg/p+qWD/zilvF0ntmho2tF0R9jv5+Z7JJSrGdpEHAVv+FdvtMO wjEYTxkAuYs5aAn8hCCIw7bGaN3lgdxejayiDxmBkoip7XKnwCe/1ElBGmJXiBLm6W70 d3eKoj0bFp4sHtdu87j3hK4gbNyzNhjETr9m6mTbOOnArMGd6xqkd63wrJMnowMIf622 zAZeS7CJTaWPS9Nujxb86kC48BpSXXTXx+eXuu8CEz38SZc9VGQ19BgF2QExc4I2H0+f oBGXeAUJd5SPuWpxDMDoAvcpkPgGS7eSPgfaxJwU4qB7t/zgXC+aFF8ReghuvEcMhOtw EKSw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PHYZ9gkK; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-2180-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-2180-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id z26-20020a05620a08da00b007835b33c34csi8009270qkz.470.2024.01.18.05.07.01 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Jan 2024 05:07:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless+bounces-2180-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PHYZ9gkK; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-wireless+bounces-2180-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-wireless+bounces-2180-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 8EBB71C2088C for ; Thu, 18 Jan 2024 13:07:01 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0818724B5D; Thu, 18 Jan 2024 13:06:58 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="PHYZ9gkK" X-Original-To: linux-wireless@vger.kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D8DCE241FC for ; Thu, 18 Jan 2024 13:06:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705583217; cv=none; b=mrrycIvLPnhzORznTnJl5K3yQFy71IjIGX9Dr2cGsoLgYicylSRuCphPPHzWQiERJ3yIo8v3jjHTVDn4ZQUdZweLxe9TnBBcVYXHchz8WDdY+BNKRDShDI8ZysBKhWAxQtx12395PpXWYEcj3Gz4LEXJ7sT1Ai4ReDD/CJr2/Ks= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1705583217; c=relaxed/simple; bh=+blTKqSBWpW6r7TfXfyfKT3NZkOLFReG37eRdYqyEEY=; h=Received:DKIM-Signature:Content-Type:MIME-Version: Content-Transfer-Encoding:Subject:From:In-Reply-To:References:To: Cc:User-Agent:Message-ID:Date; b=mGIeELk1IYyDMk4gYa4mtM5RP2EIzjOAYn+FnNSH5vtmx0yss1lB1cggypfldkl9u++VMZ5ZI2WdaaVPfXsmsDxJ2AE4HjnQ14iaqcNy8oZwTZYYSzurEJ/KlIXk6BQWguQvdpfwTcpzZKMgEej0dPRBJX/9osn492mnbR6fbT4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=PHYZ9gkK; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 78F31C433C7; Thu, 18 Jan 2024 13:06:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1705583217; bh=+blTKqSBWpW6r7TfXfyfKT3NZkOLFReG37eRdYqyEEY=; h=Subject:From:In-Reply-To:References:To:Cc:Date:From; b=PHYZ9gkKA4rS8bF3MGyeLxdyXC56bcmR/0vHfBT2kFU/bpbj3vEags0ILi6/Vr16u dfOOeTuzPkElUdvi2ev0xpDJf/WaLWL5Smzr1MLE1R1C/zqZPWXPMW3ac9vRUPaT9R 3xo5YtqaS7APiuwDrOcKYSUBBT46SncRu/Kc3sHwhrhY1S49tvfDf5pkUK+PHgGqEW 8M7lJERpzXmkVAkldArtlWH6WyBgan9B1gh6EYik0q6U5HkUGz9vfpHjLu4eYHAN// zbkrmgK1JcInsBmi9vsVHy+pGfYXRA200nMpXGCykdlrlvNCkvDVoZ1xikFFtRwCcw ZoDP6179LfYPA== Content-Type: text/plain; charset="utf-8" Precedence: bulk X-Mailing-List: linux-wireless@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [wireless-next,v2,2/3] wifi: mwifiex: debugfs: Drop unnecessary error check for debugfs_create_dir() From: Kalle Valo In-Reply-To: <20230903030216.1509013-3-ruanjinjie@huawei.com> References: <20230903030216.1509013-3-ruanjinjie@huawei.com> To: Jinjie Ruan Cc: , , , , , , , , , , , , , , , , , , , , , , , Bing Zhao , Frank Huang , Kiran Divekar , User-Agent: pwcli/0.1.1-git (https://github.com/kvalo/pwcli/) Python/3.11.2 Message-ID: <170558320955.2924528.12751516138860022016.kvalo@kernel.org> Date: Thu, 18 Jan 2024 13:06:51 +0000 (UTC) Jinjie Ruan wrote: > debugfs_create_dir() returns ERR_PTR and never return NULL. > > As Russell suggested, this patch removes the error checking for > debugfs_create_dir(). This is because 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 APIs have a IS_ERR() judge in > start_creating() which can handle it gracefully. So these checks are > unnecessary. > > Fixes: 5e6e3a92b9a4 ("wireless: mwifiex: initial commit for Marvell mwifiex driver") > Signed-off-by: Jinjie Ruan > Suggested-by: Russell King (Oracle) Patch applied to wireless-next.git, thanks. 50180c7f8e3d wifi: mwifiex: debugfs: Drop unnecessary error check for debugfs_create_dir() -- https://patchwork.kernel.org/project/linux-wireless/patch/20230903030216.1509013-3-ruanjinjie@huawei.com/ https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches