summaryrefslogtreecommitdiffstats
path: root/sys/fs
diff options
context:
space:
mode:
authorbz <bz@FreeBSD.org>2009-01-31 17:36:22 +0000
committerbz <bz@FreeBSD.org>2009-01-31 17:36:22 +0000
commit9fd12161ca2cbe826e55cef701d4c1fdb6d79911 (patch)
tree74f6b8af4d57435e5f4c1f34cfe9b0337b48a772 /sys/fs
parent033060866cf1aca0459bdb130e57b4184069dae6 (diff)
downloadFreeBSD-src-9fd12161ca2cbe826e55cef701d4c1fdb6d79911.zip
FreeBSD-src-9fd12161ca2cbe826e55cef701d4c1fdb6d79911.tar.gz
Remove unused local variables.
Submitted by: Christoph Mallon christoph.mallon@gmx.de Reviewed by: kib MFC after: 2 weeks
Diffstat (limited to 'sys/fs')
-rw-r--r--sys/fs/coda/coda_vfsops.c2
-rw-r--r--sys/fs/devfs/devfs_vnops.c3
-rw-r--r--sys/fs/hpfs/hpfs_vfsops.c7
-rw-r--r--sys/fs/nullfs/null_vnops.c2
-rw-r--r--sys/fs/nwfs/nwfs_subr.c2
-rw-r--r--sys/fs/nwfs/nwfs_vnops.c2
-rw-r--r--sys/fs/tmpfs/tmpfs_subr.c2
-rw-r--r--sys/fs/udf/udf_vnops.c2
8 files changed, 2 insertions, 20 deletions
diff --git a/sys/fs/coda/coda_vfsops.c b/sys/fs/coda/coda_vfsops.c
index de6e855..5ce6499 100644
--- a/sys/fs/coda/coda_vfsops.c
+++ b/sys/fs/coda/coda_vfsops.c
@@ -266,7 +266,6 @@ coda_root(struct mount *vfsp, int flags, struct vnode **vpp,
struct thread *td)
{
struct coda_mntinfo *mi = vftomi(vfsp);
- struct vnode **result;
int error;
struct proc *p = td->td_proc;
CodaFid VFid;
@@ -274,7 +273,6 @@ coda_root(struct mount *vfsp, int flags, struct vnode **vpp,
ENTRY;
MARK_ENTRY(CODA_ROOT_STATS);
- result = NULL;
if (vfsp == mi->mi_vfsp) {
/*
* Cache the root across calls. We only need to pass the
diff --git a/sys/fs/devfs/devfs_vnops.c b/sys/fs/devfs/devfs_vnops.c
index 3d9a164..e164dc2 100644
--- a/sys/fs/devfs/devfs_vnops.c
+++ b/sys/fs/devfs/devfs_vnops.c
@@ -1074,7 +1074,7 @@ devfs_readdir(struct vop_readdir_args *ap)
struct devfs_dirent *dd;
struct devfs_dirent *de;
struct devfs_mount *dmp;
- off_t off, oldoff;
+ off_t off;
int *tmp_ncookies = NULL;
if (ap->a_vp->v_type != VDIR)
@@ -1113,7 +1113,6 @@ devfs_readdir(struct vop_readdir_args *ap)
error = 0;
de = ap->a_vp->v_data;
off = 0;
- oldoff = uio->uio_offset;
TAILQ_FOREACH(dd, &de->de_dlist, de_list) {
KASSERT(dd->de_cdp != (void *)0xdeadc0de, ("%s %d\n", __func__, __LINE__));
if (dd->de_flags & DE_WHITEOUT)
diff --git a/sys/fs/hpfs/hpfs_vfsops.c b/sys/fs/hpfs/hpfs_vfsops.c
index 36d3dd5..a20614b 100644
--- a/sys/fs/hpfs/hpfs_vfsops.c
+++ b/sys/fs/hpfs/hpfs_vfsops.c
@@ -109,7 +109,6 @@ hpfs_mount (
{
int err = 0, error;
struct vnode *devvp;
- struct hpfsmount *hpmp = 0;
struct nameidata ndp;
struct export_args export;
char *from;
@@ -134,8 +133,6 @@ hpfs_mount (
if (mp->mnt_flag & MNT_UPDATE) {
dprintf(("hpfs_omount: MNT_UPDATE: "));
- hpmp = VFSTOHPFS(mp);
-
if (from == NULL) {
error = vfs_copyopt(mp->mnt_optnew, "export",
&export, sizeof export);
@@ -337,13 +334,11 @@ hpfs_unmount(
int mntflags,
struct thread *td)
{
- int error, flags, ronly;
+ int error, flags;
register struct hpfsmount *hpmp = VFSTOHPFS(mp);
dprintf(("hpfs_unmount():\n"));
- ronly = (mp->mnt_flag & MNT_RDONLY) != 0;
-
flags = 0;
if(mntflags & MNT_FORCE)
flags |= FORCECLOSE;
diff --git a/sys/fs/nullfs/null_vnops.c b/sys/fs/nullfs/null_vnops.c
index b51d8cd..5a6823f 100644
--- a/sys/fs/nullfs/null_vnops.c
+++ b/sys/fs/nullfs/null_vnops.c
@@ -658,7 +658,6 @@ null_reclaim(struct vop_reclaim_args *ap)
struct vnode *vp = ap->a_vp;
struct null_node *xp = VTONULL(vp);
struct vnode *lowervp = xp->null_lowervp;
- struct lock *vnlock;
if (lowervp)
null_hashrem(xp);
@@ -669,7 +668,6 @@ null_reclaim(struct vop_reclaim_args *ap)
VI_LOCK(vp);
vp->v_data = NULL;
vp->v_object = NULL;
- vnlock = vp->v_vnlock;
vp->v_vnlock = &vp->v_lock;
if (lowervp) {
lockmgr(vp->v_vnlock, LK_EXCLUSIVE | LK_INTERLOCK, VI_MTX(vp));
diff --git a/sys/fs/nwfs/nwfs_subr.c b/sys/fs/nwfs/nwfs_subr.c
index 4d55972..732651f 100644
--- a/sys/fs/nwfs/nwfs_subr.c
+++ b/sys/fs/nwfs/nwfs_subr.c
@@ -179,7 +179,6 @@ ncp_lookup(struct vnode *dvp, int len, char *name, struct nw_entry_info *fap,
{
struct nwmount *nmp;
struct nwnode *dnp;
- struct ncp_conn *conn;
int error;
if (!dvp || dvp->v_type != VDIR) {
@@ -188,7 +187,6 @@ ncp_lookup(struct vnode *dvp, int len, char *name, struct nw_entry_info *fap,
}
dnp = VTONW(dvp);
nmp = VTONWFS(dvp);
- conn = NWFSTOCONN(nmp);
if (len == 1 && name[0] == '.') {
if (dnp->n_flag & NVOLUME) {
diff --git a/sys/fs/nwfs/nwfs_vnops.c b/sys/fs/nwfs/nwfs_vnops.c
index ca0a887..774ee1e 100644
--- a/sys/fs/nwfs/nwfs_vnops.c
+++ b/sys/fs/nwfs/nwfs_vnops.c
@@ -627,7 +627,6 @@ nwfs_mkdir(ap)
struct componentname *cnp = ap->a_cnp;
int len=cnp->cn_namelen;
struct ncp_open_info no;
- struct nwnode *np;
struct vnode *newvp = (struct vnode *)0;
ncpfid fid;
int error = 0;
@@ -651,7 +650,6 @@ nwfs_mkdir(ap)
fid.f_id = no.fattr.dirEntNum;
error = nwfs_nget(VTOVFS(dvp), fid, &no.fattr, dvp, &newvp);
if (!error) {
- np = VTONW(newvp);
newvp->v_type = VDIR;
*ap->a_vpp = newvp;
}
diff --git a/sys/fs/tmpfs/tmpfs_subr.c b/sys/fs/tmpfs/tmpfs_subr.c
index fad3196..c0c6b50 100644
--- a/sys/fs/tmpfs/tmpfs_subr.c
+++ b/sys/fs/tmpfs/tmpfs_subr.c
@@ -1259,12 +1259,10 @@ tmpfs_update(struct vnode *vp)
int
tmpfs_truncate(struct vnode *vp, off_t length)
{
- boolean_t extended;
int error;
struct tmpfs_node *node;
node = VP_TO_TMPFS_NODE(vp);
- extended = length > node->tn_size;
if (length < 0) {
error = EINVAL;
diff --git a/sys/fs/udf/udf_vnops.c b/sys/fs/udf/udf_vnops.c
index 77b11fe..b62e9ef 100644
--- a/sys/fs/udf/udf_vnops.c
+++ b/sys/fs/udf/udf_vnops.c
@@ -892,7 +892,6 @@ udf_lookup(struct vop_cachedlookup_args *a)
struct udf_mnt *udfmp;
struct fileid_desc *fid = NULL;
struct udf_dirstream *ds;
- struct thread *td;
u_long nameiop;
u_long flags;
char *nameptr;
@@ -909,7 +908,6 @@ udf_lookup(struct vop_cachedlookup_args *a)
nameptr = a->a_cnp->cn_nameptr;
namelen = a->a_cnp->cn_namelen;
fsize = le64toh(node->fentry->inf_len);
- td = a->a_cnp->cn_thread;
/*
* If this is a LOOKUP and we've already partially searched through
OpenPOWER on IntegriCloud