From e65c47a67f11a7b43b34b8c968e1c44f3f71e3bd Mon Sep 17 00:00:00 2001 From: jdolecek Date: Tue, 26 Jun 2001 19:14:25 +0000 Subject: [PATCH] vfs_rootmountalloc: take advantage of LIST_FOREACH() --- sys/kern/vfs_subr.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c index f8090ba15b1f..9aee278ed8e7 100644 --- a/sys/kern/vfs_subr.c +++ b/sys/kern/vfs_subr.c @@ -1,4 +1,4 @@ -/* $NetBSD: vfs_subr.c,v 1.151 2001/06/26 15:51:06 wrstuden Exp $ */ +/* $NetBSD: vfs_subr.c,v 1.152 2001/06/26 19:14:25 jdolecek Exp $ */ /*- * Copyright (c) 1997, 1998 The NetBSD Foundation, Inc. @@ -271,8 +271,7 @@ vfs_rootmountalloc(fstypename, devname, mpp) struct vfsops *vfsp = NULL; struct mount *mp; - for (vfsp = LIST_FIRST(&vfs_list); vfsp != NULL; - vfsp = LIST_NEXT(vfsp, vfs_list)) + LIST_FOREACH(vfsp, &vfs_list, vfs_list) if (!strncmp(vfsp->vfs_name, fstypename, MFSNAMELEN)) break;