X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=fs%2Fproc%2Fproc_devtree.c;h=e7c813c99848bbbaa8fe3d7114a6b473e8b8b3fd;hb=5020cac828f9f6c98a685598599a1dc798712005;hp=67423c696c0a205afda4734b8bcaf8836fb2ce21;hpb=a91482bdcc2e0f6035702e46f1b99043a0893346;p=linux-2.6.git diff --git a/fs/proc/proc_devtree.c b/fs/proc/proc_devtree.c index 67423c696..e7c813c99 100644 --- a/fs/proc/proc_devtree.c +++ b/fs/proc/proc_devtree.c @@ -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) + if (p == 0) 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 = NULL; + *lastp = 0; 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", NULL); + proc_device_tree = proc_mkdir("device-tree", 0); if (proc_device_tree == 0) return; root = of_find_node_by_path("/");