Remove the hack-around for the slice/label code, it didn't

cover the hole.
This commit is contained in:
Poul-Henning Kamp 2001-05-29 18:19:57 +00:00
parent 9842e24c34
commit 22628ccf96
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=77408

View file

@ -106,9 +106,7 @@ dev_t
disk_create(int unit, struct disk *dp, int flags, struct cdevsw *cdevsw, struct cdevsw *proto)
{
static int once;
dev_t dev, cdev;
int i;
char buf[20];
dev_t dev;
if (!once) {
EVENTHANDLER_REGISTER(dev_clone, disk_clone, 0, 1000);
@ -138,14 +136,6 @@ disk_create(int unit, struct disk *dp, int flags, struct cdevsw *cdevsw, struct
dp->d_devsw = cdevsw;
LIST_INSERT_HEAD(&disklist, dp, d_list);
sprintf(buf, "%sc", dev->si_name);
cdev = NODEV;
disk_clone(NULL, buf, strlen(buf), &cdev);
for (i = 1; i < 5; i++) {
sprintf(buf, "%ss%d", dev->si_name, i);
cdev = NODEV;
disk_clone(NULL, buf, strlen(buf), &cdev);
}
return (dev);
}