aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWang Long <long.wanglong@huawei.com>2015-03-02 06:49:21 +0000
committerAlex Shi <alex.shi@linaro.org>2015-12-16 15:29:28 +0800
commitf04bc3d3946106add27523edc7f379dff55a0d2d (patch)
tree8817d51969235b5aca5f30533c51b56b04da21af
parenta227ecd98c6535ef7335cb97b6c3da8f97467772 (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.c1
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");