From 9c72381e09a5593df856423c995563779f7535e8 Mon Sep 17 00:00:00 2001 From: phk Date: Sat, 28 Aug 1999 14:33:44 +0000 Subject: We don't need to pass the diskname argument all over the diskslice/label code, we can find the name from any convenient dev_t --- sys/dev/ida/ida_disk.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev/ida') diff --git a/sys/dev/ida/ida_disk.c b/sys/dev/ida/ida_disk.c index 24be38b..2874d25 100644 --- a/sys/dev/ida/ida_disk.c +++ b/sys/dev/ida/ida_disk.c @@ -144,7 +144,7 @@ idopen(dev_t dev, int flags, int fmt, struct proc *p) label.d_secperunit = drv->secperunit; /* Initialize slice tables. */ - error = dsopen("id", dev, fmt, 0, &drv->slices, &label); + error = dsopen(dev, fmt, 0, &drv->slices, &label); return (error); } @@ -171,7 +171,7 @@ idioctl(dev_t dev, u_long cmd, caddr_t addr, int32_t flag, struct proc *p) if (drv == NULL) return (ENXIO); - error = dsioctl("id", dev, cmd, addr, flag, &drv->slices); + error = dsioctl(dev, cmd, addr, flag, &drv->slices); if (error == ENOIOCTL) return (ENOTTY); -- cgit v1.1