Module Name:    src
Committed By:   dholland
Date:           Mon Apr 18 00:45:29 UTC 2011

Modified Files:
        src/sys/kern: vfs_lookup.c

Log Message:
Goto still harmful, but use "goto alldone" in place of a loop break
for now anyway.


To generate a diff of this commit:
cvs rdiff -u -r1.177 -r1.178 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.177 src/sys/kern/vfs_lookup.c:1.178
--- src/sys/kern/vfs_lookup.c:1.177	Mon Apr 18 00:45:07 2011
+++ src/sys/kern/vfs_lookup.c	Mon Apr 18 00:45:29 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: vfs_lookup.c,v 1.177 2011/04/18 00:45:07 dholland Exp $	*/
+/*	$NetBSD: vfs_lookup.c,v 1.178 2011/04/18 00:45:29 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.177 2011/04/18 00:45:07 dholland Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vfs_lookup.c,v 1.178 2011/04/18 00:45:29 dholland Exp $");
 
 #include "opt_magiclinks.h"
 
@@ -1184,11 +1184,11 @@
 			/*
 			 * Success with no object returned means we're
 			 * creating something and it isn't already
-			 * there. Break out of the main loop now so
+			 * there. Jump out of the main loop now so
 			 * the code below doesn't have to test for
 			 * foundobj == NULL.
 			 */
-			break;
+			goto alldone;
 		}
 
 		/*
@@ -1351,6 +1351,7 @@
 
 		break;
 	}
+ alldone:
 
 	/*
 	 * Done.

Reply via email to