of/unittest: remove the duplicate of_changeset_init
authorWang Long <long.wanglong@huawei.com>
Mon, 2 Mar 2015 06:49:21 +0000 (06:49 +0000)
committerRob Herring <robh@kernel.org>
Tue, 10 Mar 2015 15:34:34 +0000 (10:34 -0500)
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>
Signed-off-by: Rob Herring <robh@kernel.org>
drivers/of/unittest.c

index eaef89e8358becb7cbb03f7bad1291c27492d96e..ee99028447ad049c6ccf1ba34d2123758a4d8e45 100644 (file)
@@ -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");