summaryrefslogtreecommitdiffstats
path: root/arch/arm/kernel/topology.c
diff options
context:
space:
mode:
authorRob Herring <robh@kernel.org>2018-08-27 17:59:05 +0200
committerRob Herring <robh@kernel.org>2018-09-28 21:25:58 +0200
commit07d44f1f82b780a597fddc677d761417f2af8452 (patch)
tree0b9805e90eb7fb3c049b9457e873cb139cb55048 /arch/arm/kernel/topology.c
parentARM: use for_each_of_cpu_node iterator (diff)
downloadlinux-07d44f1f82b780a597fddc677d761417f2af8452.tar.xz
linux-07d44f1f82b780a597fddc677d761417f2af8452.zip
ARM: topology: remove unneeded check for /cpus node
Checking for "/cpus" node is not necessary as of_get_cpu_node() will fail later on anyways. The call to of_find_node_by_path() also leaks a reference. So just remove the check. Cc: Russell King <linux@armlinux.org.uk> Cc: linux-arm-kernel@lists.infradead.org Signed-off-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'arch/arm/kernel/topology.c')
-rw-r--r--arch/arm/kernel/topology.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/arch/arm/kernel/topology.c b/arch/arm/kernel/topology.c
index 24ac3cab411d..60e375ce1ab2 100644
--- a/arch/arm/kernel/topology.c
+++ b/arch/arm/kernel/topology.c
@@ -94,12 +94,6 @@ static void __init parse_dt_topology(void)
__cpu_capacity = kcalloc(nr_cpu_ids, sizeof(*__cpu_capacity),
GFP_NOWAIT);
- cn = of_find_node_by_path("/cpus");
- if (!cn) {
- pr_err("No CPU information found in DT\n");
- return;
- }
-
for_each_possible_cpu(cpu) {
const u32 *rate;
int len;