child = NULL;
while ((child = of_get_next_child(np, child))) {
p = strrchr(child->full_name, '/');
- if (!p)
+ if (p == 0)
p = child->full_name;
else
++p;
lastp = &al->next;
}
of_node_put(child);
- *lastp = NULL;
+ *lastp = 0;
de->subdir = list;
}
struct device_node *root;
if ( !have_of )
return;
- proc_device_tree = proc_mkdir("device-tree", NULL);
+ proc_device_tree = proc_mkdir("device-tree", 0);
if (proc_device_tree == 0)
return;
root = of_find_node_by_path("/");