linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] perf: remove duplicate check on fwnode
@ 2020-11-06  6:41 Wang Qing
  2020-11-25 15:44 ` Will Deacon
  0 siblings, 1 reply; 2+ messages in thread
From: Wang Qing @ 2020-11-06  6:41 UTC (permalink / raw)
  To: Will Deacon, Mark Rutland, linux-arm-kernel, linux-kernel; +Cc: Wang Qing

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(-)

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))
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] perf: remove duplicate check on fwnode
  2020-11-06  6:41 [PATCH] perf: remove duplicate check on fwnode Wang Qing
@ 2020-11-25 15:44 ` Will Deacon
  0 siblings, 0 replies; 2+ messages in thread
From: Will Deacon @ 2020-11-25 15:44 UTC (permalink / raw)
  To: Wang Qing, linux-arm-kernel, Mark Rutland, linux-kernel
  Cc: catalin.marinas, kernel-team, Will Deacon

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,
-- 
Will

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-11-25 15:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-06  6:41 [PATCH] perf: remove duplicate check on fwnode Wang Qing
2020-11-25 15:44 ` Will Deacon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).