summaryrefslogtreecommitdiff
path: root/sys/kern/vfs_lookup.c
diff options
context:
space:
mode:
authorJonathan Gray <jsg@cvs.openbsd.org>2015-04-23 02:55:16 +0000
committerJonathan Gray <jsg@cvs.openbsd.org>2015-04-23 02:55:16 +0000
commit0535907297d082da71248622904440770525b57f (patch)
tree479187e0795465a93808b1bb84219521cea1bfdc /sys/kern/vfs_lookup.c
parent1f2a591f372496b83486a637562f466acc577190 (diff)
avoid an uneeded deref
ok blambert@ guenther@
Diffstat (limited to 'sys/kern/vfs_lookup.c')
-rw-r--r--sys/kern/vfs_lookup.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/vfs_lookup.c b/sys/kern/vfs_lookup.c
index 9f7eae22f75..9a758aa1fa1 100644
--- a/sys/kern/vfs_lookup.c
+++ b/sys/kern/vfs_lookup.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vfs_lookup.c,v 1.52 2015/03/14 03:38:51 jsg Exp $ */
+/* $OpenBSD: vfs_lookup.c,v 1.53 2015/04/23 02:55:15 jsg Exp $ */
/* $NetBSD: vfs_lookup.c,v 1.17 1996/02/09 19:00:59 christos Exp $ */
/*
@@ -662,7 +662,7 @@ vfs_relookup(struct vnode *dvp, struct vnode **vpp, struct componentname *cnp)
/* XXX: Figure out the length of the last component. */
cp = cnp->cn_nameptr;
while (*cp && (*cp != '/')) {
- *cp++;
+ cp++;
}
if (cnp->cn_namelen != cp - cnp->cn_nameptr)
panic("relookup: bad len");