Received: by mail.netbsd.org (Postfix, from userid 605) id 58C8914A30D; Mon, 18 Apr 2011 00:47:06 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id 0FC3F14A30C for ; Mon, 18 Apr 2011 00:47:05 +0000 (UTC) X-Virus-Scanned: amavisd-new at NetBSD.org Received: from mail.netbsd.org ([127.0.0.1]) by localhost (mail.NetBSD.org [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id dB1iAMw3edOi for ; Mon, 18 Apr 2011 00:47:04 +0000 (UTC) Received: from cvs.netbsd.org (cvs.NetBSD.org [IPv6:2001:4f8:3:7:2e0:81ff:fe30:95bd]) by mail.netbsd.org (Postfix) with ESMTP id 91E6D14A309 for ; Mon, 18 Apr 2011 00:47:04 +0000 (UTC) Received: by cvs.netbsd.org (Postfix, from userid 500) id 718A9175DD; Mon, 18 Apr 2011 00:47:04 +0000 (UTC) MIME-Version: 1.0 Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" Date: Mon, 18 Apr 2011 00:47:04 +0000 From: "David A. Holland" Subject: CVS commit: src/sys/kern To: source-changes@NetBSD.org X-Mailer: log_accum Message-Id: <20110418004704.718A9175DD@cvs.netbsd.org> Sender: source-changes-owner@NetBSD.org List-Id: source-changes.NetBSD.org Precedence: bulk Reply-To: source-changes-d@NetBSD.org Mail-Reply-To: "David A. Holland" Mail-Followup-To: source-changes-d@NetBSD.org Module Name: src Committed By: dholland Date: Mon Apr 18 00:47:04 UTC 2011 Modified Files: src/sys/kern: vfs_lookup.c Log Message: Goto considered harmful: now the "goto alldone" can be dropped by reversing the sense of the associated test and using the big block I moved a couple versions back (and didn't reindent on purpose) as the body of the if statement. There are now no gotos in namei_oneroot, only normal loop logic. To generate a diff of this commit: cvs rdiff -u -r1.181 -r1.182 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.