summaryrefslogtreecommitdiffstats
path: root/sys/cam/scsi/scsi_cd.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1999-08-28 14:33:44 +0000
committerphk <phk@FreeBSD.org>1999-08-28 14:33:44 +0000
commit9c72381e09a5593df856423c995563779f7535e8 (patch)
tree3471f1e5faa7dd2bf47573f428c3a46114bac456 /sys/cam/scsi/scsi_cd.c
parenta261857e2d7ff67439a916b9f0b8db5e91302af0 (diff)
downloadFreeBSD-src-9c72381e09a5593df856423c995563779f7535e8.zip
FreeBSD-src-9c72381e09a5593df856423c995563779f7535e8.tar.gz
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
Diffstat (limited to 'sys/cam/scsi/scsi_cd.c')
-rw-r--r--sys/cam/scsi/scsi_cd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/cam/scsi/scsi_cd.c b/sys/cam/scsi/scsi_cd.c
index a6d4ac8..5e9d1d2 100644
--- a/sys/cam/scsi/scsi_cd.c
+++ b/sys/cam/scsi/scsi_cd.c
@@ -956,7 +956,7 @@ cdopen(dev_t dev, int flags, int fmt, struct proc *p)
label.d_partitions[0].p_fstype = FS_OTHER;
/* Initialize slice tables. */
- error = dsopen("cd", dev, fmt, DSO_NOLABELS | DSO_ONESLICE,
+ error = dsopen(dev, fmt, DSO_NOLABELS | DSO_ONESLICE,
&softc->cd_slices, &label);
if (error == 0) {
@@ -2452,7 +2452,7 @@ cdioctl(dev_t dev, u_long cmd, caddr_t addr, int flag, struct proc *p)
* Check to see whether we've got a disk-type ioctl. If we
* don't, dsioctl will pass back an error code of ENOIOCTL.
*/
- error = dsioctl("cd", dev, cmd, addr, flag, &softc->cd_slices);
+ error = dsioctl(dev, cmd, addr, flag, &softc->cd_slices);
if (error != ENOIOCTL)
break;
OpenPOWER on IntegriCloud