summaryrefslogtreecommitdiffstats
path: root/drivers/of/base.c
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2015-10-28 04:05:27 +0100
committerRob Herring <robh@kernel.org>2015-10-30 19:04:19 +0100
commit510bd068db34b946a067629679c5cc99c8b99f1e (patch)
treec7d401c1d0cb5e7352d57c3ed3a1c6dec67d4af8 /drivers/of/base.c
parentDocumentation: arm: Fixed typo in socfpga fpga mgr example (diff)
downloadlinux-510bd068db34b946a067629679c5cc99c8b99f1e.tar.xz
linux-510bd068db34b946a067629679c5cc99c8b99f1e.zip
of: simplify arch_find_n_match_cpu_physical_id() function
This commit does not change the function behavior. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Signed-off-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'drivers/of/base.c')
-rw-r--r--drivers/of/base.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/of/base.c b/drivers/of/base.c
index 8b5a187a7682..017dd94f16ea 100644
--- a/drivers/of/base.c
+++ b/drivers/of/base.c
@@ -375,10 +375,7 @@ bool __weak arch_find_n_match_cpu_physical_id(struct device_node *cpun,
cpu, thread))
return true;
- if (__of_find_n_match_cpu_property(cpun, "reg", cpu, thread))
- return true;
-
- return false;
+ return __of_find_n_match_cpu_property(cpun, "reg", cpu, thread);
}
/**