lkml.org 
[lkml]   [2015]   [Mar]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Date
SubjectRe: [PATCH] of/selftest: remove the duplicate of_changeset_init
On Mon, Mar 2, 2015 at 12:49 AM, Wang Long <long.wanglong@huawei.com> wrote:
> Remove the duplicate of_changeset_init. In of_selftest_changeset
> testcase, the "struct of_changeset chgset" is initialized twice,
> but only once is enough. so, drop the first initializtion code.
>
> Signed-off-by: Wang Long <long.wanglong@huawei.com>

Applied for 4.0. Thanks.

Rob

> ---
> drivers/of/unittest.c | 1 -
> 1 file changed, 1 deletion(-)
>
> diff --git a/drivers/of/unittest.c b/drivers/of/unittest.c
> index 0cf9a23..199fb23 100644
> --- a/drivers/of/unittest.c
> +++ b/drivers/of/unittest.c
> @@ -478,7 +478,6 @@ static void __init of_selftest_changeset(void)
> struct device_node *n1, *n2, *n21, *nremove, *parent, *np;
> struct of_changeset chgset;
>
> - of_changeset_init(&chgset);
> n1 = __of_node_dup(NULL, "/testcase-data/changeset/n1");
> selftest(n1, "testcase setup failure\n");
> n2 = __of_node_dup(NULL, "/testcase-data/changeset/n2");
> --
> 1.8.3.4
>


\
 
 \ /
  Last update: 2015-03-13 16:41    [W:0.029 / U:5.656 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site