aboutsummaryrefslogtreecommitdiff
path: root/arch/s390
diff options
context:
space:
mode:
authorGravatar Jinjie Ruan <ruanjinjie@huawei.com> 2023-09-01 15:30:56 +0800
committerGravatar Joerg Roedel <jroedel@suse.de> 2023-09-25 12:42:02 +0200
commitf7da9c081517daba70f9f9342e09d7a6322ba323 (patch)
treea6e8c9c287bdfbbe61989589cf5dbf9a6b8d442a /arch/s390
parentLinux 6.6-rc3 (diff)
downloadlinux-f7da9c081517daba70f9f9342e09d7a6322ba323.tar.gz
linux-f7da9c081517daba70f9f9342e09d7a6322ba323.tar.bz2
linux-f7da9c081517daba70f9f9342e09d7a6322ba323.zip
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: d1313e7896e9 ("iommu/tegra-smmu: Add debugfs support") Signed-off-by: Jinjie Ruan <ruanjinjie@huawei.com> Suggested-by: Baolu Lu <baolu.lu@linux.intel.com> Acked-by: Thierry Reding <treding@nvidia.com> Reviewed-by: Jason Gunthorpe <jgg@nvidia.com> Link: https://lore.kernel.org/r/20230901073056.1364755-1-ruanjinjie@huawei.com Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'arch/s390')
0 files changed, 0 insertions, 0 deletions