diff options
| author | Nate Lawson <njl@FreeBSD.org> | 2002-11-20 00:26:19 +0000 |
|---|---|---|
| committer | Nate Lawson <njl@FreeBSD.org> | 2002-11-20 00:26:19 +0000 |
| commit | cd0056fd2b41f4d93a2b43469b81e998636654e5 (patch) | |
| tree | dea95748148b9403d77641d54c07629c3fd0b7b3 /sys/dev/ata | |
| parent | 7d60445c1f9f7c04b60bca76f1246c00e8ce2b74 (diff) | |
Notes
Diffstat (limited to 'sys/dev/ata')
| -rw-r--r-- | sys/dev/ata/atapi-cd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ata/atapi-cd.c b/sys/dev/ata/atapi-cd.c index 9b8498e60bcc..a001c1ea8e27 100644 --- a/sys/dev/ata/atapi-cd.c +++ b/sys/dev/ata/atapi-cd.c @@ -1002,11 +1002,11 @@ acdioctl(dev_t dev, u_long cmd, caddr_t addr, int flags, struct proc *p) break; case CDRIOCREADSPEED: - error = acd_set_speed(cdp, 177 * (*(int *)addr), -1); + error = acd_set_speed(cdp, *(int *)addr, CDR_MAX_SPEED); break; case CDRIOCWRITESPEED: - error = acd_set_speed(cdp, -1, 177 * (*(int *)addr)); + error = acd_set_speed(cdp, CDR_MAX_SPEED, *(int *)addr); break; case CDRIOCGETBLOCKSIZE: |
