diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2015-10-28 04:05:27 +0100 |
---|---|---|
committer | Rob Herring <robh@kernel.org> | 2015-10-30 19:04:19 +0100 |
commit | 510bd068db34b946a067629679c5cc99c8b99f1e (patch) | |
tree | c7d401c1d0cb5e7352d57c3ed3a1c6dec67d4af8 /drivers/of/base.c | |
parent | Documentation: arm: Fixed typo in socfpga fpga mgr example (diff) | |
download | linux-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.c | 5 |
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); } /** |