aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/vfs_syscalls.c
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>2003-05-31 20:29:34 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>2003-05-31 20:29:34 +0000
commit670966596b1524a641125bcee083727b4fb75670 (patch)
tree7de2bef7c0ec5ca84ef0ae4ad8013d1bc6735757 /sys/kern/vfs_syscalls.c
parentd1043f6d6abdc047d0420232ad8779b8f55ceb47 (diff)
downloadsrc-670966596b1524a641125bcee083727b4fb75670.tar.gz
src-670966596b1524a641125bcee083727b4fb75670.zip
Remove unused variable(s).
Found by: FlexeLint
Notes
Notes: svn path=/head/; revision=115549
Diffstat (limited to 'sys/kern/vfs_syscalls.c')
-rw-r--r--sys/kern/vfs_syscalls.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/sys/kern/vfs_syscalls.c b/sys/kern/vfs_syscalls.c
index 5d41208b8dd7..8639ea698d6d 100644
--- a/sys/kern/vfs_syscalls.c
+++ b/sys/kern/vfs_syscalls.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);