of: simplify arch_find_n_match_cpu_physical_id() function
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Wed, 28 Oct 2015 03:05:27 +0000 (12:05 +0900)
committerRob Herring <robh@kernel.org>
Fri, 30 Oct 2015 18:04:19 +0000 (13:04 -0500)
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>
drivers/of/base.c

index 8b5a187a768280c25efce25284f09875347834f1..017dd94f16ea3dd8ebbc37b81188f2d47933e878 100644 (file)
@@ -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);
 }
 
 /**