diff options
author | Wang Long <long.wanglong@huawei.com> | 2015-03-02 06:49:21 +0000 |
---|---|---|
committer | Alex Shi <alex.shi@linaro.org> | 2015-12-16 15:29:28 +0800 |
commit | f04bc3d3946106add27523edc7f379dff55a0d2d (patch) | |
tree | 8817d51969235b5aca5f30533c51b56b04da21af | |
parent | a227ecd98c6535ef7335cb97b6c3da8f97467772 (diff) |
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>
(cherry picked from commit dc6a9453eb253658df8740d4d872c6323daf4f0d)
Signed-off-by: Alex Shi <alex.shi@linaro.org>
-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 302b527a8cdd..9a30d79260c3 100644 --- a/drivers/of/unittest.c +++ b/drivers/of/unittest.c @@ -475,7 +475,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"); |