From: Joerg Sonnenberger Date: Mon, 31 Jan 2005 18:11:06 +0000 (+0000) Subject: Cleanup last commit. Remove local ncp, it shadows the parameter, add X-Git-Tag: v2.0.1~8997 X-Git-Url: https://gitweb.dragonflybsd.org/dragonfly.git/commitdiff_plain/6a506bad006a13044a7f8b4cc586d8fadb18dba4?ds=sidebyside Cleanup last commit. Remove local ncp, it shadows the parameter, add return(0) and remove unused locals in vn_fullpath. --- diff --git a/sys/kern/vfs_cache.c b/sys/kern/vfs_cache.c index e995877e15..22b710598d 100644 --- a/sys/kern/vfs_cache.c +++ b/sys/kern/vfs_cache.c @@ -67,7 +67,7 @@ * * @(#)vfs_cache.c 8.5 (Berkeley) 3/22/95 * $FreeBSD: src/sys/kern/vfs_cache.c,v 1.42.2.6 2001/10/05 20:07:03 dillon Exp $ - * $DragonFly: src/sys/kern/vfs_cache.c,v 1.47 2005/01/31 17:17:58 joerg Exp $ + * $DragonFly: src/sys/kern/vfs_cache.c,v 1.48 2005/01/31 18:11:06 joerg Exp $ */ #include @@ -1764,7 +1764,6 @@ cache_fullpath(struct proc *p, struct namecache *ncp, char **retbuf, char **free char *bp, *buf; int i, slash_prefixed; struct filedesc *fdp; - struct namecache *ncp; numfullpathcalls--; @@ -1815,14 +1814,13 @@ cache_fullpath(struct proc *p, struct namecache *ncp, char **retbuf, char **free numfullpathfound++; *retbuf = bp; *freebuf = buf; + + return(0); } int vn_fullpath(struct proc *p, struct vnode *vn, char **retbuf, char **freebuf) { - char *bp, *buf; - int i, slash_prefixed; - struct filedesc *fdp; struct namecache *ncp; numfullpathcalls++;