Skip to content

Commit

Permalink
of/unittest: remove the duplicate of_changeset_init
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Wang Long authored and Rob Herring committed Mar 10, 2015
1 parent d1e9fa9 commit dc6a945
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/of/unittest.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit dc6a945

Please sign in to comment.