perf: remove duplicate check on fwnode
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.
Signed-off-by Wang Qing <[email protected]>
--- drivers/perf/arm_dsu_pmu.c | 3 --- 1 file changed, 3 deletions(-)
drivers/perf/arm_dsu_pmu.c +0 -3
@@ -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
Quoted 2 lines · Wang Qing
fwnode is checked
IS_ERR_OR_NULLin following check byis_of_node()oris_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