Skip to contentSkip to conversation

perf: remove duplicate check on fwnode

PATCH Applied Wang Qing 2 participants 2 messages Nov 6, 2020 – Nov 25, 2020 Arm PMU profiling and debugging

lore
Share & tools
lore

Wang Qing

author
#0 lore raw

PATCH 1/1 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.

---
 drivers/perf/arm_dsu_pmu.c | 3 ---
 1 file changed, 3 deletions(-)
drivers/perf/arm_dsu_pmu.c +0 -3
index 98e68ed..0459a34
@@ -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))
Signature · 1 line
2.7.4
maintainer Applied
#1 lore raw
Quoted 2 lines · Wang Qing

fwnode is checked IS_ERR_OR_NULL in following check by is_of_node() or is_acpi_device_node(), remove duplicate check.

Applied to will (for-next/perf), thanks!

[1/1] perf: remove duplicate check on fwnode

      https://git.kernel.org/will/c/6c8cfbf5db42

Cheers,

Signature · 5 lines
Will

https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev