diff mbox series

perf: remove duplicate check on fwnode

Message ID 1604644902-29655-1-git-send-email-wangqing@vivo.com (mailing list archive)
State New, archived
Headers show
Series perf: remove duplicate check on fwnode | expand

Commit Message

王擎 Nov. 6, 2020, 6:41 a.m. UTC
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>
---
 drivers/perf/arm_dsu_pmu.c | 3 ---
 1 file changed, 3 deletions(-)

Comments

Will Deacon Nov. 25, 2020, 3:44 p.m. UTC | #1
On Fri, 6 Nov 2020 14:41:42 +0800, Wang Qing wrote:
> 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,
diff mbox series

Patch

diff --git a/drivers/perf/arm_dsu_pmu.c b/drivers/perf/arm_dsu_pmu.c
index 98e68ed..0459a34
--- 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))