[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <ZWRhDMgPCjP_hlZW@8bytes.org>
Date: Mon, 27 Nov 2023 10:27:40 +0100
From: Joerg Roedel <joro@...tes.org>
To: Dario Binacchi <dario.binacchi@...rulasolutions.com>
Cc: linux-kernel@...r.kernel.org, Baolu Lu <baolu.lu@...ux.intel.com>,
Jonathan Hunter <jonathanh@...dia.com>,
Krishna Reddy <vdumpa@...dia.com>,
Robin Murphy <robin.murphy@....com>,
Thierry Reding <thierry.reding@...il.com>,
Will Deacon <will@...nel.org>, iommu@...ts.linux.dev,
linux-tegra@...r.kernel.org
Subject: Re: [PATCH v2] iommu/tegra-smmu: drop error checking for
debugfs_create_dir()
On Wed, Oct 25, 2023 at 05:25:58PM +0200, Dario Binacchi wrote:
> The return value of debugfs_create_dir() should be checked using the
> IS_ERR() function. The patch, however, drops the check statement without
> fixing it because the subsequent functions (i. e. debugfs_create_file())
> can handle the case where `@...ent` is an error pointer.
This deserves a comment in the code explaining why no error checking is
needed.
Regards,
Joerg
Powered by blists - more mailing lists