summaryrefslogtreecommitdiffstats
path: root/sys/kern/vfs_syscalls.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2003-05-31 20:29:34 +0000
committerphk <phk@FreeBSD.org>2003-05-31 20:29:34 +0000
commit2048912526464c943ca01eb049aa45a6f63814b6 (patch)
tree7de2bef7c0ec5ca84ef0ae4ad8013d1bc6735757 /sys/kern/vfs_syscalls.c
parente8c1d97f209fdc1266d67f8f5ec3d76ae575750e (diff)
downloadFreeBSD-src-2048912526464c943ca01eb049aa45a6f63814b6.zip
FreeBSD-src-2048912526464c943ca01eb049aa45a6f63814b6.tar.gz
Remove unused variable(s).
Found by: FlexeLint
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 5d41208..8639ea6 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);
OpenPOWER on IntegriCloud