diff options
author | sos <sos@FreeBSD.org> | 2002-03-10 21:03:04 +0000 |
---|---|---|
committer | sos <sos@FreeBSD.org> | 2002-03-10 21:03:04 +0000 |
commit | 2420c1b4514ab4e2e22b9c88fb79bcabe10f6664 (patch) | |
tree | 3e590bfe2589ca6b5045edcad3b670c765348fcd | |
parent | 58e10953a4a89585a52ba7793b6a70b34199ac3a (diff) | |
download | FreeBSD-src-2420c1b4514ab4e2e22b9c88fb79bcabe10f6664.zip FreeBSD-src-2420c1b4514ab4e2e22b9c88fb79bcabe10f6664.tar.gz |
Silence a warning when compile without atapi devices.
-rw-r--r-- | sys/dev/ata/ata-all.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/dev/ata/ata-all.c b/sys/dev/ata/ata-all.c index de10f7a..2c63f77 100644 --- a/sys/dev/ata/ata-all.c +++ b/sys/dev/ata/ata-all.c @@ -274,10 +274,8 @@ static int ataioctl(dev_t dev, u_long cmd, caddr_t addr, int32_t flag, struct thread *td) { struct ata_cmd *iocmd = (struct ata_cmd *)addr; - struct ata_device *atadev; struct ata_channel *ch; device_t device = devclass_get_device(ata_devclass, iocmd->channel); - caddr_t buf; int error, s; if (cmd != IOCATA) @@ -375,7 +373,9 @@ ataioctl(dev_t dev, u_long cmd, caddr_t addr, int32_t flag, struct thread *td) return 0; #if defined(DEV_ATAPICD) || defined(DEV_ATAPIFD) || defined(DEV_ATAPIST) - case ATAPICMD: + case ATAPICMD: { + struct ata_device *atadev; + caddr_t buf; if (!device || !(ch = device_get_softc(device))) return ENXIO; @@ -409,6 +409,7 @@ ataioctl(dev_t dev, u_long cmd, caddr_t addr, int32_t flag, struct thread *td) free(buf, M_ATA); return error; + } #endif default: } |