On Fri, Sep 01, 2023 at 03:30:56PM +0800, Jinjie Ruan wrote: > The debugfs_create_dir() function returns error pointers. > It never returns NULL. > > As Baolu suggested, this patch removes the error checking for > debugfs_create_dir in tegra-smmu.c. 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: d1313e7896e9 ("iommu/tegra-smmu: Add debugfs support") > Signed-off-by: Jinjie Ruan <ruanjinjie@xxxxxxxxxx> > Suggested-by: Baolu Lu <baolu.lu@xxxxxxxxxxxxxxx> > --- > v2: > - Remove the err check instead of using IS_ERR to replace NULL check. > - Update the commit message and title. > --- > drivers/iommu/tegra-smmu.c | 2 -- > 1 file changed, 2 deletions(-) Reviewed-by: Jason Gunthorpe <jgg@xxxxxxxxxx> Jason