From: Masahiro Yamada Date: Wed, 28 Oct 2015 03:05:27 +0000 (+0900) Subject: of: simplify arch_find_n_match_cpu_physical_id() function X-Git-Tag: firefly_0821_release~176^2~709^2~6 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=510bd068db34b946a067629679c5cc99c8b99f1e;p=firefly-linux-kernel-4.4.55.git of: simplify arch_find_n_match_cpu_physical_id() function This commit does not change the function behavior. Signed-off-by: Masahiro Yamada Signed-off-by: Rob Herring --- 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); } /**