* [PATCH] of: simplify arch_find_n_match_cpu_physical_id() function
@ 2015-10-28 3:05 Masahiro Yamada
2015-10-30 18:31 ` Rob Herring
0 siblings, 1 reply; 2+ messages in thread
From: Masahiro Yamada @ 2015-10-28 3:05 UTC (permalink / raw)
To: devicetree
Cc: Masahiro Yamada, Frank Rowand, Rob Herring, linux-kernel, Grant Likely
This commit does not change the function behavior.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
---
drivers/of/base.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/drivers/of/base.c b/drivers/of/base.c
index 8b5a187..017dd94 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);
}
/**
--
1.9.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] of: simplify arch_find_n_match_cpu_physical_id() function
2015-10-28 3:05 [PATCH] of: simplify arch_find_n_match_cpu_physical_id() function Masahiro Yamada
@ 2015-10-30 18:31 ` Rob Herring
0 siblings, 0 replies; 2+ messages in thread
From: Rob Herring @ 2015-10-30 18:31 UTC (permalink / raw)
To: Masahiro Yamada; +Cc: devicetree, Frank Rowand, linux-kernel, Grant Likely
On Tue, Oct 27, 2015 at 10:05 PM, Masahiro Yamada
<yamada.masahiro@socionext.com> wrote:
> This commit does not change the function behavior.
>
> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Applied. Thanks.
Rob
> ---
>
> drivers/of/base.c | 5 +----
> 1 file changed, 1 insertion(+), 4 deletions(-)
>
> diff --git a/drivers/of/base.c b/drivers/of/base.c
> index 8b5a187..017dd94 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);
> }
>
> /**
> --
> 1.9.1
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-10-30 18:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-28 3:05 [PATCH] of: simplify arch_find_n_match_cpu_physical_id() function Masahiro Yamada
2015-10-30 18:31 ` Rob Herring
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).