Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Wang Qing and committed by
Will Deacon
6c8cfbf5 53c218da

-3
-3
drivers/perf/arm_dsu_pmu.c
··· 716 716 if (IS_ERR(dsu_pmu)) 717 717 return PTR_ERR(dsu_pmu); 718 718 719 - if (IS_ERR_OR_NULL(fwnode)) 720 - return -ENOENT; 721 - 722 719 if (is_of_node(fwnode)) 723 720 rc = dsu_pmu_dt_get_cpus(&pdev->dev, &dsu_pmu->associated_cpus); 724 721 else if (is_acpi_device_node(fwnode))