Module Name:    src
Committed By:   dholland
Date:           Mon Apr 18 00:46:14 UTC 2011

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

Log Message:
Goto considered harmful: "goto terminal" can now just be "break".


To generate a diff of this commit:
cvs rdiff -u -r1.179 -r1.180 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.179 src/sys/kern/vfs_lookup.c:1.180
--- src/sys/kern/vfs_lookup.c:1.179	Mon Apr 18 00:45:53 2011
+++ src/sys/kern/vfs_lookup.c	Mon Apr 18 00:46:14 2011
@@ -1,4 +1,4 @@
-/*	$NetBSD: vfs_lookup.c,v 1.179 2011/04/18 00:45:53 dholland Exp $	*/
+/*	$NetBSD: vfs_lookup.c,v 1.180 2011/04/18 00:46:14 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.179 2011/04/18 00:45:53 dholland Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vfs_lookup.c,v 1.180 2011/04/18 00:46:14 dholland Exp $");
 
 #include "opt_magiclinks.h"
 
@@ -1150,7 +1150,7 @@
 			cnp->cn_flags |= ISLASTCN;
 
 			/* bleh */
-			goto terminal;
+			break;
 		}
 
 		error = lookup_parsepath(state);
@@ -1264,7 +1264,6 @@
 		break;
 	}
 
-    terminal:
 	{
 		if (foundobj == ndp->ni_erootdir) {
 			/*

Reply via email to