mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-26 09:30:53 +07:00
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>
This commit is contained in:
parent
d1e9fa9838
commit
dc6a9453eb
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user