浏览代码

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>
Masahiro Yamada 9 年之前
父节点
当前提交
510bd068db
共有 1 个文件被更改,包括 1 次插入4 次删除
  1. 1 4
      drivers/of/base.c

+ 1 - 4
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);
 }
 
 /**