Hi,
Sorry, this is insane, forget it.
On 6/10/05, Coywolf Qi Hunt <[email protected]> wrote:
> hello,
>
> This is an obvious cleanup to next_mnt() by making use of list_empty().
>
>
> Signed-off-by: Coywolf Qi Hunt <[email protected]>
>
> --- 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;
--
Coywolf Qi Hunt
http://ahbl.org/~coywolf/
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]