Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/kern Move the big chunk of code at "terminal:" outside t...



details:   https://anonhg.NetBSD.org/src/rev/e63ea4ea79d8
branches:  trunk
changeset: 764369:e63ea4ea79d8
user:      dholland <dholland%NetBSD.org@localhost>
date:      Mon Apr 18 00:45:53 2011 +0000

description:
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.

diffstat:

 sys/kern/vfs_lookup.c |  11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diffs (41 lines):

diff -r dad815c11fc8 -r e63ea4ea79d8 sys/kern/vfs_lookup.c
--- a/sys/kern/vfs_lookup.c     Mon Apr 18 00:45:29 2011 +0000
+++ b/sys/kern/vfs_lookup.c     Mon Apr 18 00:45:53 2011 +0000
@@ -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:
 
        /*



Home | Main Index | Thread Index | Old Index