Skip to content
Commit f7da9c08 authored by Jinjie Ruan's avatar Jinjie Ruan Committed by Joerg Roedel
Browse files

iommu/tegra-smmu: Drop unnecessary error check for for debugfs_create_dir()



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: d1313e78 ("iommu/tegra-smmu: Add debugfs support")
Signed-off-by: default avatarJinjie Ruan <ruanjinjie@huawei.com>
Suggested-by: default avatarBaolu Lu <baolu.lu@linux.intel.com>
Acked-by: default avatarThierry Reding <treding@nvidia.com>
Reviewed-by: default avatarJason Gunthorpe <jgg@nvidia.com>
Link: https://lore.kernel.org/r/20230901073056.1364755-1-ruanjinjie@huawei.com


Signed-off-by: default avatarJoerg Roedel <jroedel@suse.de>
parent 6465e260
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment