diff options
author | phk <phk@FreeBSD.org> | 2003-05-31 20:29:34 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2003-05-31 20:29:34 +0000 |
commit | 2048912526464c943ca01eb049aa45a6f63814b6 (patch) | |
tree | 7de2bef7c0ec5ca84ef0ae4ad8013d1bc6735757 /sys/kern/vfs_extattr.c | |
parent | e8c1d97f209fdc1266d67f8f5ec3d76ae575750e (diff) | |
download | FreeBSD-src-2048912526464c943ca01eb049aa45a6f63814b6.zip FreeBSD-src-2048912526464c943ca01eb049aa45a6f63814b6.tar.gz |
Remove unused variable(s).
Found by: FlexeLint
Diffstat (limited to 'sys/kern/vfs_extattr.c')
-rw-r--r-- | sys/kern/vfs_extattr.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/sys/kern/vfs_extattr.c b/sys/kern/vfs_extattr.c index 5d41208..8639ea6 100644 --- a/sys/kern/vfs_extattr.c +++ b/sys/kern/vfs_extattr.c @@ -659,7 +659,7 @@ kern_open(struct thread *td, char *path, enum uio_seg pathseg, int flags, struct vnode *vp; struct vattr vat; struct mount *mp; - int cmode, oflags; + int cmode; struct file *nfp; int type, indx, error; struct flock lf; @@ -667,7 +667,6 @@ kern_open(struct thread *td, char *path, enum uio_seg pathseg, int flags, if ((flags & O_ACCMODE) == O_ACCMODE) return (EINVAL); - oflags = flags; flags = FFLAGS(flags); error = falloc(td, &nfp, &indx); if (error) @@ -2171,12 +2170,10 @@ fchmod(td, uap) } */ *uap; { struct file *fp; - struct vnode *vp; int error; if ((error = getvnode(td->td_proc->p_fd, uap->fd, &fp)) != 0) return (error); - vp = fp->f_data; error = setfmode(td, fp->f_data, uap->mode); fdrop(fp, td); return (error); @@ -2315,12 +2312,10 @@ fchown(td, uap) } */ *uap; { struct file *fp; - struct vnode *vp; int error; if ((error = getvnode(td->td_proc->p_fd, uap->fd, &fp)) != 0) return (error); - vp = fp->f_data; error = setfown(td, fp->f_data, uap->uid, uap->gid); fdrop(fp, td); return (error); |