[patch] next_mnt() cleanup
From: Coywolf Qi Hunt
Date: Fri Jun 10 2005 - 02:28:17 EST
hello,
This is an obvious cleanup to next_mnt() by making use of list_empty().
Signed-off-by: Coywolf Qi Hunt <coywolf@xxxxxxxxxx>
--- linux-2.6.12-rc5-mm2/fs/namespace.c 2005-06-06 09:24:44.000000000 +0800
+++ linux-2.6.12-rc5-mm2-cy/fs/namespace.c 2005-06-10 14:56:47.000000000 +0800
@@ -133,8 +133,7 @@ static void attach_mnt(struct vfsmount *
static struct vfsmount *next_mnt(struct vfsmount *p, struct vfsmount *root)
{
- struct list_head *next = p->mnt_mounts.next;
- if (next == &p->mnt_mounts) {
+ if (list_empty(&p->mnt_mounts)) {
while (1) {
if (p == root)
return NULL;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/