diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2015-10-28 12:05:27 +0900 |
---|---|---|
committer | Rob Herring <robh@kernel.org> | 2015-10-30 13:04:19 -0500 |
commit | 510bd068db34b946a067629679c5cc99c8b99f1e (patch) | |
tree | c7d401c1d0cb5e7352d57c3ed3a1c6dec67d4af8 /drivers/of | |
parent | 794fab7d785a2fb5b3f1777619143a8e72955eac (diff) | |
download | linux-510bd068db34b946a067629679c5cc99c8b99f1e.tar.bz2 |
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')
-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); } /** |