VServer 1.9.2 (patch-2.6.8.1-vs1.9.2.diff)
[linux-2.6.git] / fs / proc / proc_devtree.c
index e7c813c..67423c6 100644 (file)
@@ -88,7 +88,7 @@ void proc_device_tree_add_node(struct device_node *np, struct proc_dir_entry *de
        child = NULL;
        while ((child = of_get_next_child(np, child))) {
                p = strrchr(child->full_name, '/');
-               if (p == 0)
+               if (!p)
                        p = child->full_name;
                else
                        ++p;
@@ -140,7 +140,7 @@ void proc_device_tree_add_node(struct device_node *np, struct proc_dir_entry *de
                lastp = &al->next;
        }
        of_node_put(child);
-       *lastp = 0;
+       *lastp = NULL;
        de->subdir = list;
 }
 
@@ -152,7 +152,7 @@ void proc_device_tree_init(void)
        struct device_node *root;
        if ( !have_of )
                return;
-       proc_device_tree = proc_mkdir("device-tree", 0);
+       proc_device_tree = proc_mkdir("device-tree", NULL);
        if (proc_device_tree == 0)
                return;
        root = of_find_node_by_path("/");