Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/ufs/chfs simplify.
details: https://anonhg.NetBSD.org/src/rev/c744753fc767
branches: trunk
changeset: 333136:c744753fc767
user: christos <christos%NetBSD.org@localhost>
date: Mon Oct 20 11:57:05 2014 +0000
description:
simplify.
diffstat:
sys/ufs/chfs/chfs_vfsops.c | 11 +++++------
1 files changed, 5 insertions(+), 6 deletions(-)
diffs (26 lines):
diff -r 91b64baa376b -r c744753fc767 sys/ufs/chfs/chfs_vfsops.c
--- a/sys/ufs/chfs/chfs_vfsops.c Mon Oct 20 10:31:32 2014 +0000
+++ b/sys/ufs/chfs/chfs_vfsops.c Mon Oct 20 11:57:05 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: chfs_vfsops.c,v 1.12 2014/10/20 06:41:51 maxv Exp $ */
+/* $NetBSD: chfs_vfsops.c,v 1.13 2014/10/20 11:57:05 christos Exp $ */
/*-
* Copyright (c) 2010 Department of Software Engineering,
@@ -152,12 +152,11 @@
}
/* Look up the name and verify that it's sane. */
NDINIT(&nd, LOOKUP, FOLLOW, pb);
- if ((err = namei(&nd)) != 0 ) {
- pathbuf_destroy(pb);
- return (err);
- }
+ err = namei(&nd);
+ pathbuf_destroy(pb);
+ if (err)
+ return err;
devvp = nd.ni_vp;
- pathbuf_destroy(pb);
/* Be sure this is a valid block device */
if (devvp->v_type != VBLK)
Home |
Main Index |
Thread Index |
Old Index