Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/ufs/ufs Make one code path a bit clearer.
details: https://anonhg.NetBSD.org/src/rev/10b3f4a28590
branches: trunk
changeset: 475036:10b3f4a28590
user: mycroft <mycroft%NetBSD.org@localhost>
date: Fri Jul 30 01:55:38 1999 +0000
description:
Make one code path a bit clearer.
diffstat:
sys/ufs/ufs/ufs_lookup.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (20 lines):
diff -r 1bb1bb925c05 -r 10b3f4a28590 sys/ufs/ufs/ufs_lookup.c
--- a/sys/ufs/ufs/ufs_lookup.c Fri Jul 30 01:32:05 1999 +0000
+++ b/sys/ufs/ufs/ufs_lookup.c Fri Jul 30 01:55:38 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ufs_lookup.c,v 1.21 1999/07/08 01:06:07 wrstuden Exp $ */
+/* $NetBSD: ufs_lookup.c,v 1.22 1999/07/30 01:55:38 mycroft Exp $ */
/*
* Copyright (c) 1989, 1993
@@ -184,8 +184,8 @@
cnp->cn_flags |= PDIRUNLOCK;
error = vget(vdp, LK_EXCLUSIVE);
if (!error && lockparent && (flags & ISLASTCN)) {
- error = vn_lock(pdp, LK_EXCLUSIVE);
- if (error == 0)
+ if ((error = vn_lock(pdp, LK_EXCLUSIVE)) != 0)
+ return (error);
cnp->cn_flags &= ~PDIRUNLOCK;
}
} else {
Home |
Main Index |
Thread Index |
Old Index