summaryrefslogtreecommitdiff
path: root/fs/proc/proc_devtree.c
diff options
context:
space:
mode:
authorAlexander Viro <viro@www.linux.org.uk>2004-07-26 06:59:48 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-07-26 06:59:48 -0700
commita72d313f2db0d7adeeead1979a3875e366d6ccb9 (patch)
tree166296a89b891b38c38ddbb5f828c3d7dafa1498 /fs/proc/proc_devtree.c
parentf4163e8a631b5f4db316dde21cdddf682ee65cfb (diff)
[PATCH] more NULL noise removal in fs/*
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'fs/proc/proc_devtree.c')
-rw-r--r--fs/proc/proc_devtree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/proc/proc_devtree.c b/fs/proc/proc_devtree.c
index 5d73364f799a..67423c696c0a 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 == 0)
+ if (!p)
p = child->full_name;
else
++p;