summaryrefslogtreecommitdiffstats
path: root/drivers/perf
diff options
context:
space:
mode:
authorWang Qing <wangqing@vivo.com>2020-11-06 07:41:42 +0100
committerWill Deacon <will@kernel.org>2020-11-25 16:02:08 +0100
commit6c8cfbf5db42bc300372d893a140ea0879fb0772 (patch)
treea5f116d1671339cad7953ccb8c30d0c65021f55b /drivers/perf
parentdriver/perf: Add PMU driver for the ARM DMC-620 memory controller (diff)
downloadlinux-6c8cfbf5db42bc300372d893a140ea0879fb0772.tar.xz
linux-6c8cfbf5db42bc300372d893a140ea0879fb0772.zip
perf: remove duplicate check on fwnode
fwnode is checked IS_ERR_OR_NULL in following check by is_of_node() or is_acpi_device_node(), remove duplicate check. Signed-off-by: Wang Qing <wangqing@vivo.com> Link: https://lore.kernel.org/r/1604644902-29655-1-git-send-email-wangqing@vivo.com Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'drivers/perf')
-rw-r--r--drivers/perf/arm_dsu_pmu.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/perf/arm_dsu_pmu.c b/drivers/perf/arm_dsu_pmu.c
index 98e68ed7db85..0459a3403469 100644
--- a/drivers/perf/arm_dsu_pmu.c
+++ b/drivers/perf/arm_dsu_pmu.c
@@ -716,9 +716,6 @@ static int dsu_pmu_device_probe(struct platform_device *pdev)
if (IS_ERR(dsu_pmu))
return PTR_ERR(dsu_pmu);
- if (IS_ERR_OR_NULL(fwnode))
- return -ENOENT;
-
if (is_of_node(fwnode))
rc = dsu_pmu_dt_get_cpus(&pdev->dev, &dsu_pmu->associated_cpus);
else if (is_acpi_device_node(fwnode))