diff options
author | phk <phk@FreeBSD.org> | 2000-07-27 18:18:47 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2000-07-27 18:18:47 +0000 |
commit | 2a3538a3affca5e59ad02b23bfef299a6cea672d (patch) | |
tree | ea10673d99552d01b2eba9c14ae36f983cfe009e /sys | |
parent | 1dcee686be164c292149c7c8093b20087273e54d (diff) | |
download | FreeBSD-src-2a3538a3affca5e59ad02b23bfef299a6cea672d.zip FreeBSD-src-2a3538a3affca5e59ad02b23bfef299a6cea672d.tar.gz |
Remove stale, unused and bogus root device hunting code.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/miscfs/kernfs/kernfs.h | 1 | ||||
-rw-r--r-- | sys/miscfs/kernfs/kernfs_vfsops.c | 24 |
2 files changed, 0 insertions, 25 deletions
diff --git a/sys/miscfs/kernfs/kernfs.h b/sys/miscfs/kernfs/kernfs.h index 9f826d2..2f0bb26 100644 --- a/sys/miscfs/kernfs/kernfs.h +++ b/sys/miscfs/kernfs/kernfs.h @@ -52,5 +52,4 @@ struct kernfs_node { #define VTOKERN(vp) ((struct kernfs_node *)(vp)->v_data) extern vop_t **kernfs_vnodeop_p; -extern dev_t rrootdev; #endif /* _KERNEL */ diff --git a/sys/miscfs/kernfs/kernfs_vfsops.c b/sys/miscfs/kernfs/kernfs_vfsops.c index e55c540..94c4d1f 100644 --- a/sys/miscfs/kernfs/kernfs_vfsops.c +++ b/sys/miscfs/kernfs/kernfs_vfsops.c @@ -54,9 +54,6 @@ static MALLOC_DEFINE(M_KERNFSMNT, "KERNFS mount", "KERNFS mount structure"); -dev_t rrootdev = NODEV; - -static void kernfs_get_rrootdev __P((void)); static int kernfs_mount __P((struct mount *mp, char *path, caddr_t data, struct nameidata *ndp, struct proc *p)); static int kernfs_unmount __P((struct mount *mp, int mntflags, @@ -65,26 +62,6 @@ static int kernfs_root __P((struct mount *mp, struct vnode **vpp)); static int kernfs_statfs __P((struct mount *mp, struct statfs *sbp, struct proc *p)); -static void -kernfs_get_rrootdev() -{ - static int tried = 0; - struct cdevsw *sw; - - if (tried) { - /* Already did it once. */ - return; - } - tried = 1; - - sw = devsw(rootdev); - if (!sw) - return; - if (rootdev == NODEV) - return; - rrootdev = makedev(sw->d_maj, minor(rootdev)); -} - /* * Mount the Kernel params filesystem */ @@ -139,7 +116,6 @@ kernfs_mount(mp, path, data, ndp, p) printf("kernfs_mount: at %s\n", mp->mnt_stat.f_mntonname); #endif - kernfs_get_rrootdev(); return (0); } |