Re: [PATCH] of: simplify arch_find_n_match_cpu_physical_id() function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Tue, Oct 27, 2015 at 10:05 PM, Masahiro Yamada
<yamada.masahiro@xxxxxxxxxxxxx> wrote:
> This commit does not change the function behavior.
>
> Signed-off-by: Masahiro Yamada <yamada.masahiro@xxxxxxxxxxxxx>

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
>
--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]
  Powered by Linux