[<prev] [next>] [day] [month] [year] [list]
Message-Id: <20230714090245.2614-1-duminjie@vivo.com>
Date: Fri, 14 Jul 2023 17:02:44 +0800
From: Minjie Du <duminjie@...o.com>
To: baolu.lu@...ux.intel.com,
Thierry Reding <thierry.reding@...il.com>,
Krishna Reddy <vdumpa@...dia.com>,
Joerg Roedel <joro@...tes.org>, Will Deacon <will@...nel.org>,
Robin Murphy <robin.murphy@....com>,
Jonathan Hunter <jonathanh@...dia.com>,
linux-tegra@...r.kernel.org (open list:TEGRA IOMMU DRIVERS),
iommu@...ts.linux.dev (open list:IOMMU SUBSYSTEM),
linux-kernel@...r.kernel.org (open list)
Cc: opensource.kernel@...o.com, Minjie Du <duminjie@...o.com>,
Thierry Reding <treding@...dia.com>
Subject: [PATCH v4] iommu: remove redundant parameter check in tegra_smmu_debugfs_init()
debugfs_create_file() will return early if smmu->debugfs is an error
pointer, so an extra error check is not needed.
Signed-off-by: Minjie Du <duminjie@...o.com>
Acked-by: Thierry Reding <treding@...dia.com>
Reviewed-by: Lu Baolu <baolu.lu@...ux.intel.com>
---
V4 -> V6: Add 'Reviewed-by' tag on the basis of V4.
V5: error patch, should be discarded.
V3 -> V4: fix expression about patch.
V2 -> V3: fix expression about patch.
V1 -> V2: remove the error check.
V1: use IS_ERR() to error check.
---
drivers/iommu/tegra-smmu.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/iommu/tegra-smmu.c b/drivers/iommu/tegra-smmu.c
index 1cbf063cc..2137040b7 100644
--- a/drivers/iommu/tegra-smmu.c
+++ b/drivers/iommu/tegra-smmu.c
@@ -1056,8 +1056,6 @@ DEFINE_SHOW_ATTRIBUTE(tegra_smmu_clients);
static void tegra_smmu_debugfs_init(struct tegra_smmu *smmu)
{
smmu->debugfs = debugfs_create_dir("smmu", NULL);
- if (!smmu->debugfs)
- return;
debugfs_create_file("swgroups", S_IRUGO, smmu->debugfs, smmu,
&tegra_smmu_swgroups_fops);
--
2.39.0
Powered by blists - more mailing lists