ARM: topology: remove unneeded check for /cpus node
authorRob Herring <robh@kernel.org>
Mon, 27 Aug 2018 15:59:05 +0000 (10:59 -0500)
committerRob Herring <robh@kernel.org>
Fri, 28 Sep 2018 19:25:58 +0000 (14:25 -0500)
commit07d44f1f82b780a597fddc677d761417f2af8452
tree0b9805e90eb7fb3c049b9457e873cb139cb55048
parentd4866f751edf6d46d523b75979b3c6affed16510
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>
arch/arm/kernel/topology.c