Module Name: src Committed By: dholland Date: Mon Apr 18 00:45:53 UTC 2011
Modified Files: src/sys/kern: vfs_lookup.c Log Message: Move the big chunk of code at "terminal:" outside the loop; since it has an unconditional loop break at the end this can be done safely, now that the other loop break has been patched out. Add a spurious set of braces to preserve the indent for the moment. To generate a diff of this commit: cvs rdiff -u -r1.178 -r1.179 src/sys/kern/vfs_lookup.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/kern/vfs_lookup.c diff -u src/sys/kern/vfs_lookup.c:1.178 src/sys/kern/vfs_lookup.c:1.179 --- src/sys/kern/vfs_lookup.c:1.178 Mon Apr 18 00:45:29 2011 +++ src/sys/kern/vfs_lookup.c Mon Apr 18 00:45:53 2011 @@ -1,4 +1,4 @@ -/* $NetBSD: vfs_lookup.c,v 1.178 2011/04/18 00:45:29 dholland Exp $ */ +/* $NetBSD: vfs_lookup.c,v 1.179 2011/04/18 00:45:53 dholland Exp $ */ /* * Copyright (c) 1982, 1986, 1989, 1993 @@ -37,7 +37,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: vfs_lookup.c,v 1.178 2011/04/18 00:45:29 dholland Exp $"); +__KERNEL_RCSID(0, "$NetBSD: vfs_lookup.c,v 1.179 2011/04/18 00:45:53 dholland Exp $"); #include "opt_magiclinks.h" @@ -1261,7 +1261,11 @@ continue; } + break; + } + terminal: + { if (foundobj == ndp->ni_erootdir) { /* * We are about to return the emulation root. @@ -1348,9 +1352,8 @@ */ VOP_UNLOCK(foundobj); } - - break; } + alldone: /*