diff options
author | Wang Long <long.wanglong@huawei.com> | 2015-03-02 06:49:21 +0000 |
---|---|---|
committer | Rob Herring <robh@kernel.org> | 2015-03-10 10:34:34 -0500 |
commit | dc6a9453eb253658df8740d4d872c6323daf4f0d (patch) | |
tree | d4757ffb493403ca03497c9a005b5ad51b056201 /drivers | |
parent | d1e9fa98387549a24633fb6b00a26edb34382488 (diff) | |
download | linux-dc6a9453eb253658df8740d4d872c6323daf4f0d.tar.bz2 |
of/unittest: remove the duplicate of_changeset_init
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/of/unittest.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/of/unittest.c b/drivers/of/unittest.c index eaef89e8358b..ee99028447ad 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"); |