Remove unused local variables.
Submitted by: Christoph Mallon christoph.mallon@gmx.de Reviewed by: kib MFC after: 2 weeks
This commit is contained in:
parent
959e14c15e
commit
7956d34b95
@ -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
|
||||
|
@ -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)
|
||||
|
@ -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;
|
||||
|
@ -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));
|
||||
|
@ -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) {
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user