File tree Expand file tree Collapse file tree 1 file changed +0
-15
lines changed Expand file tree Collapse file tree 1 file changed +0
-15
lines changed Original file line number Diff line number Diff line change @@ -30,11 +30,6 @@ static struct selftest_results {
30
30
int failed ;
31
31
} selftest_results ;
32
32
33
- #define NO_OF_NODES 3
34
- static struct device_node * nodes [NO_OF_NODES ];
35
- static int last_node_index ;
36
- static bool selftest_live_tree ;
37
-
38
33
#define selftest (result , fmt , ...) ({ \
39
34
bool failed = !(result); \
40
35
if (failed) { \
@@ -833,13 +828,6 @@ static int attach_node_and_children(struct device_node *np)
833
828
return 0 ;
834
829
}
835
830
836
- /* Children of the root need to be remembered for removal */
837
- if (np -> parent == of_root ) {
838
- if (WARN_ON (last_node_index >= NO_OF_NODES ))
839
- return - EINVAL ;
840
- nodes [last_node_index ++ ] = np ;
841
- }
842
-
843
831
child = np -> child ;
844
832
np -> child = NULL ;
845
833
@@ -902,10 +890,7 @@ static int __init selftest_data_add(void)
902
890
}
903
891
904
892
if (!of_root ) {
905
- /* enabling flag for removing nodes */
906
- selftest_live_tree = true;
907
893
of_root = selftest_data_node ;
908
-
909
894
for_each_of_allnodes (np )
910
895
__of_attach_node_sysfs (np );
911
896
of_aliases = of_find_node_by_path ("/aliases" );
You can’t perform that action at this time.
0 commit comments