From c6eec84c93eaab161505e3dcf250bc51ce874289 Mon Sep 17 00:00:00 2001 From: jsg Date: Thu, 23 Apr 2015 02:55:15 +0000 Subject: [PATCH] avoid an uneeded deref ok blambert@ guenther@ --- sys/kern/vfs_lookup.c | 4 ++-- 1 file 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"); -- 2.20.1