Received: by 2002:ab2:b82:0:b0:1f3:401:3cfb with SMTP id 2csp331197lqh; Thu, 28 Mar 2024 03:34:15 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXQ4WQo72KrNTyD+QuldIlbsL2rylix/AQKtJS87fr0UY3+46MHKv6WImXj0wKvSwzRAHhRDuS6k46ZBfIrJJd7jrJNNMGivw/ckKodUw== X-Google-Smtp-Source: AGHT+IEy9QpMY4WaPYEWuBiB8VR0EHqfY39Fj/gZ85A7oR/5ox+FQPXTQ5APaohEPzF63aAbM4v1 X-Received: by 2002:ac8:7dcc:0:b0:431:3da3:9525 with SMTP id c12-20020ac87dcc000000b004313da39525mr2911904qte.2.1711622054879; Thu, 28 Mar 2024 03:34:14 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711622054; cv=pass; d=google.com; s=arc-20160816; b=U6cniygnJQqCzV4OEKx14H6UatlJr1dV+v6ytWdT16QC4FWxJc8MmpLDOIrTlx5Twi 3IhewKF6PtOOHRx52F2JON34gaU0QF5j/0EQfiLNoQKmG61JTuKmgrXOmmvjJzhSvMTd c8n+BycxDm9KKqtwBhE+A/nSa4S87LvoSps4GqG7Q7FzPv9Vdxou2zFqfUUc6HFUwxxp qWXOT0hGOLNj3pHGUqAkaaExwanGJURBNkm3qImYq0he07FIawQ+PYdeoHG/yz4XFXtS JF2Z47N0MHHAqLJ+/ZjfrM9gIl1CfEL+0eaP+c5BVqecxkE/PRfIz3ZgTfgbIEFLSuYd GE/g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date; bh=bJvgsoDRiPK6DZ9hPAXg2UM9kvtpwUsn8PXETTm400k=; fh=vWxFLDfOzX83p9Bi4tZM2Lg8ec+4pKcTyO6S57n2+Xs=; b=O+pNKsGUZVVgmbsso66H95RBSt2FMtk4eEJXtvXZLbnXz8yTzUyIgoF02wv8uaXYqk SluiO8aCJQ3ymNNCNuh/a/ZPoKAJDMJqJy0vK3FNIIYv+ZJ1IcY59mNfS5mr6wJoJLdb jmUfSMUKSn1szxqZ7nGHyeMb79HnED3Ef7X7WE2/3s9hpfu2KumFh59gByft0YA9mYoD Rbv2cFqC4LxhB58OgObB9Pqv1sg27oXmQ2DohrNCkS6PI731VRv3AgADE/uwFMl9LRjN x3CvjzotaZ4BFJUamjwnFCQp1OEuF1Np2PoF/ECwIx0+QbyYSqrRcd+Rtd2gvhDx1Bdf AMEg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-122781-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-122781-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=denx.de Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id w14-20020a05622a190e00b00431310f8ba4si1096578qtc.340.2024.03.28.03.34.14 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Mar 2024 03:34:14 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-122781-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1); spf=pass (google.com: domain of linux-kernel+bounces-122781-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-122781-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=denx.de 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 99C2F1C2E49F for ; Thu, 28 Mar 2024 10:34:14 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D81677C6D5; Thu, 28 Mar 2024 10:34:08 +0000 (UTC) Received: from jabberwock.ucw.cz (jabberwock.ucw.cz [46.255.230.98]) (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 7AC1E57895; Thu, 28 Mar 2024 10:34:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.255.230.98 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711622048; cv=none; b=L1cC9zNfYdM7gQljoPouDCevciotLwYCnV+EH7JM/xOT7J0hsHSXx6Vc9pFSEYC1hDmrPA6557fn5yuNxQQsdR35KSUuxdi93YwtV181dSZgywsyFw1dHfyu8mep3KYEeUA/mNu+W/I4wxZMo9e/v6HUfoQqXNqyMh0ppOfdf8E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711622048; c=relaxed/simple; bh=9GKBgRe8M71pv5YsV8sYX43vihykXoAI4QMvCVvtNFc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=DmBsPnGbSprLGQLwLbDrJkkwY7p3tP20ljUWmSTVvt+4JqqEhJf2+fPUP4QXzomP7HjyQ1BtlJdSbZkg5zB3OfmgpHJbyI263HQSrYtduUFcHCtf/5uiUoyJKbdsDPquXDdcdX3gczZd6TejXGDyfGdm78bikGH/L2WZ0JKAxIE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=denx.de; spf=fail smtp.mailfrom=denx.de; arc=none smtp.client-ip=46.255.230.98 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=denx.de Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=denx.de Received: by jabberwock.ucw.cz (Postfix, from userid 1017) id C0AA91C0081; Thu, 28 Mar 2024 11:34:04 +0100 (CET) Date: Thu, 28 Mar 2024 11:34:04 +0100 From: Pavel Machek To: Sasha Levin Cc: linux-kernel@vger.kernel.org, stable@vger.kernel.org, Jinjie Ruan , Russell King , Kalle Valo Subject: Re: [PATCH 4.19 035/148] wifi: mwifiex: debugfs: Drop unnecessary error check for debugfs_create_dir() Message-ID: References: <20240324235012.1356413-1-sashal@kernel.org> <20240324235012.1356413-36-sashal@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="tkcsipe4i8KMbCTU" Content-Disposition: inline In-Reply-To: <20240324235012.1356413-36-sashal@kernel.org> --tkcsipe4i8KMbCTU Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi! > From: Jinjie Ruan >=20 > [ Upstream commit 50180c7f8e3de7c2d87f619131776598fcb1478d ] >=20 > debugfs_create_dir() returns ERR_PTR and never return NULL. >=20 > 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. Additional error handling does not break anything. This does not fix a bug, and thus does not belong into stable. Best regards, Pavel =09 > +++ b/drivers/net/wireless/marvell/mwifiex/debugfs.c > @@ -977,9 +977,6 @@ mwifiex_dev_debugfs_init(struct mwifiex_private *priv) > priv->dfs_dev_dir =3D debugfs_create_dir(priv->netdev->name, > mwifiex_dfs_dir); > =20 > - if (!priv->dfs_dev_dir) > - return; > - > MWIFIEX_DFS_ADD_FILE(info); > MWIFIEX_DFS_ADD_FILE(debug); > MWIFIEX_DFS_ADD_FILE(getlog); --=20 DENX Software Engineering GmbH, Managing Director: Erika Unter HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany --tkcsipe4i8KMbCTU Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRPfPO7r0eAhk010v0w5/Bqldv68gUCZgVHnAAKCRAw5/Bqldv6 8nWfAJ9PHvxLJw8k4iAUnXui+VmjI/BQ4gCeJBZ/PeipfPLhm5EZaYu7SOY+W4c= =Cb2c -----END PGP SIGNATURE----- --tkcsipe4i8KMbCTU--