Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/compat/common simplify
details: https://anonhg.NetBSD.org/src/rev/238f288847e6
branches: trunk
changeset: 333137:238f288847e6
user: christos <christos%NetBSD.org@localhost>
date: Mon Oct 20 11:58:01 2014 +0000
description:
simplify
diffstat:
sys/compat/common/vfs_syscalls_30.c | 12 +++++-------
1 files changed, 5 insertions(+), 7 deletions(-)
diffs (34 lines):
diff -r c744753fc767 -r 238f288847e6 sys/compat/common/vfs_syscalls_30.c
--- a/sys/compat/common/vfs_syscalls_30.c Mon Oct 20 11:57:05 2014 +0000
+++ b/sys/compat/common/vfs_syscalls_30.c Mon Oct 20 11:58:01 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vfs_syscalls_30.c,v 1.35 2014/10/20 06:56:38 maxv Exp $ */
+/* $NetBSD: vfs_syscalls_30.c,v 1.36 2014/10/20 11:58:01 christos Exp $ */
/*-
* Copyright (c) 2005, 2008 The NetBSD Foundation, Inc.
@@ -29,7 +29,7 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: vfs_syscalls_30.c,v 1.35 2014/10/20 06:56:38 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vfs_syscalls_30.c,v 1.36 2014/10/20 11:58:01 christos Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -356,12 +356,10 @@
}
NDINIT(&nd, LOOKUP, FOLLOW | LOCKLEAF | TRYEMULROOT, pb);
error = namei(&nd);
- if (error) {
- pathbuf_destroy(pb);
- return (error);
- }
+ pathbuf_destroy(pb);
+ if (error)
+ return error;
vp = nd.ni_vp;
- pathbuf_destroy(pb);
sz = sizeof(struct compat_30_fhandle);
error = vfs_composefh(vp, (void *)&fh, &sz);
Home |
Main Index |
Thread Index |
Old Index