diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1998-10-05 00:39:28 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1998-10-05 00:39:28 +0000 |
commit | 7dc47b08c8935b36c594692788aa758c646b2ce6 (patch) | |
tree | bd1b1fb3f80dca69c88b805c4e05f7f9de2952d4 /sys/dev/isa/mcd.c | |
parent | 4158dd1a40ddb031493325f0dfbfebbd1b4eaa04 (diff) |
make DIOCGPDINFO equivalent to DIOCGDINFO for cd's
Diffstat (limited to 'sys/dev/isa/mcd.c')
-rw-r--r-- | sys/dev/isa/mcd.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/sys/dev/isa/mcd.c b/sys/dev/isa/mcd.c index 023bbff9b54..fd4e85e6d4a 100644 --- a/sys/dev/isa/mcd.c +++ b/sys/dev/isa/mcd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mcd.c,v 1.26 1998/10/04 21:25:41 millert Exp $ */ +/* $OpenBSD: mcd.c,v 1.27 1998/10/05 00:39:27 millert Exp $ */ /* $NetBSD: mcd.c,v 1.60 1998/01/14 12:14:41 drochner Exp $ */ /* @@ -608,14 +608,8 @@ mcdioctl(dev, cmd, addr, flag, p) return EIO; switch (cmd) { - case DIOCGPDINFO: { - struct cpu_disklabel osdep; - - mcdgetdisklabel(dev, sc, (struct disklabel *)addr, - &osdep, 1); - return 0; - } case DIOCGDINFO: + case DIOCGPDINFO: *(struct disklabel *)addr = *(sc->sc_dk.dk_label); return 0; |