Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern description:
details: https://anonhg.NetBSD.org/src/rev/4feb0fa6eb2d
branches: trunk
changeset: 764083:4feb0fa6eb2d
user: dholland <dholland%NetBSD.org@localhost>
date: Mon Apr 11 02:19:42 2011 +0000
description:
description:
Don't assign inside an if-expression without an explicit comparison.
diffstat:
sys/kern/vfs_lookup.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r 68ae11bf06e8 -r 4feb0fa6eb2d sys/kern/vfs_lookup.c
--- a/sys/kern/vfs_lookup.c Mon Apr 11 02:19:27 2011 +0000
+++ b/sys/kern/vfs_lookup.c Mon Apr 11 02:19:42 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vfs_lookup.c,v 1.168 2011/04/11 02:19:27 dholland Exp $ */
+/* $NetBSD: vfs_lookup.c,v 1.169 2011/04/11 02:19:42 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.168 2011/04/11 02:19:27 dholland Exp $");
+__KERNEL_RCSID(0, "$NetBSD: vfs_lookup.c,v 1.169 2011/04/11 02:19:42 dholland Exp $");
#include "opt_magiclinks.h"
@@ -997,7 +997,8 @@
* Check to see if the vnode has been mounted on;
* if so find the root of the mounted file system.
*/
- while (foundobj->v_type == VDIR && (mp = foundobj->v_mountedhere) &&
+ while (foundobj->v_type == VDIR &&
+ (mp = foundobj->v_mountedhere) != NULL &&
(cnp->cn_flags & NOCROSSMOUNT) == 0) {
error = vfs_busy(mp, NULL);
if (error != 0) {
Home |
Main Index |
Thread Index |
Old Index