diff options
author | gpalmer <gpalmer@FreeBSD.org> | 1996-06-12 05:08:34 +0000 |
---|---|---|
committer | gpalmer <gpalmer@FreeBSD.org> | 1996-06-12 05:08:34 +0000 |
commit | d356aa8b627cecbc5a3a5e98327366686498962d (patch) | |
tree | 75b10d209de43019a6a6831d5e346a6e58ddf251 /sys/miscfs/devfs/devfs_vfsops.c | |
parent | 904c454ce5d66ebfbbaa39f3bb678692810ccc88 (diff) | |
download | FreeBSD-src-d356aa8b627cecbc5a3a5e98327366686498962d.zip FreeBSD-src-d356aa8b627cecbc5a3a5e98327366686498962d.tar.gz |
Clean up -Wunused warnings. Julian asked me to just ifdef
out unused code as this is still work in progress.
Reviewed by: bde
Diffstat (limited to 'sys/miscfs/devfs/devfs_vfsops.c')
-rw-r--r-- | sys/miscfs/devfs/devfs_vfsops.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/sys/miscfs/devfs/devfs_vfsops.c b/sys/miscfs/devfs/devfs_vfsops.c index c1cf599..b8b0437 100644 --- a/sys/miscfs/devfs/devfs_vfsops.c +++ b/sys/miscfs/devfs/devfs_vfsops.c @@ -1,7 +1,7 @@ /* * Written by Julian Elischer (julian@DIALix.oz.au) * - * $Header: /home/ncvs/src/sys/miscfs/devfs/devfs_vfsops.c,v 1.10 1996/04/06 13:34:36 joerg Exp $ + * $Header: /home/ncvs/src/sys/miscfs/devfs/devfs_vfsops.c,v 1.11 1996/04/07 01:15:02 joerg Exp $ * * */ @@ -103,7 +103,6 @@ static int mountdevfs( struct mount *mp, struct proc *p) { int error = 0; - int ronly = (mp->mnt_flag & MNT_RDONLY) != 0; struct devfsmount *devfs_mp_p; @@ -144,8 +143,6 @@ DBPRINT(("start ")); static int devfs_unmount( struct mount *mp, int mntflags, struct proc *p) { - int flags = 0; - int error = 0; struct devfsmount *devfs_mp_p = (struct devfsmount *)mp->mnt_data; DBPRINT(("unmount ")); @@ -153,7 +150,8 @@ DBPRINT(("unmount ")); free((caddr_t)devfs_mp_p, M_DEVFSMNT); mp->mnt_data = (qaddr_t)0; mp->mnt_flag &= ~MNT_LOCAL; - return error; + + return 0; } /* return the address of the root vnode in *vpp */ |