Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f04bc3d3 authored by Wang Long's avatar Wang Long Committed by Alex Shi
Browse files

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: default avatarWang Long <long.wanglong@huawei.com>
Signed-off-by: default avatarRob Herring <robh@kernel.org>
(cherry picked from commit dc6a9453eb253658df8740d4d872c6323daf4f0d)
Signed-off-by: default avatarAlex Shi <alex.shi@linaro.org>
parent a227ecd9
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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");