Remove stale, unused and bogus root device hunting code.

This commit is contained in:
Poul-Henning Kamp 2000-07-27 18:18:47 +00:00
parent 85ea01646c
commit f4bac0e6c6
2 changed files with 0 additions and 25 deletions

View File

@ -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 */

View File

@ -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);
}