aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/ata/ata-isa.c
diff options
context:
space:
mode:
authorSøren Schmidt <sos@FreeBSD.org>2005-04-25 07:57:04 +0000
committerSøren Schmidt <sos@FreeBSD.org>2005-04-25 07:57:04 +0000
commitecd6c15d6adcf18764c496195e9e82ea745e04d4 (patch)
treef40de3fe09e81e716b3cb0cfa6b007d5f90211c4 /sys/dev/ata/ata-isa.c
parent625785005226c026631b984ab7d34600ca35d842 (diff)
downloadsrc-ecd6c15d6adcf18764c496195e9e82ea745e04d4.tar.gz
src-ecd6c15d6adcf18764c496195e9e82ea745e04d4.zip
Cosmetics
Notes
Notes: svn path=/head/; revision=145499
Diffstat (limited to 'sys/dev/ata/ata-isa.c')
-rw-r--r--sys/dev/ata/ata-isa.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/sys/dev/ata/ata-isa.c b/sys/dev/ata/ata-isa.c
index 2e8acda69db9..68825d0c213d 100644
--- a/sys/dev/ata/ata-isa.c
+++ b/sys/dev/ata/ata-isa.c
@@ -73,9 +73,8 @@ ata_isa_probe(device_t dev)
/* allocate the io port range */
rid = ATA_IOADDR_RID;
- io = bus_alloc_resource(dev, SYS_RES_IOPORT, &rid, 0, ~0,
- ATA_IOSIZE, RF_ACTIVE);
- if (!io)
+ if (!(io = bus_alloc_resource(dev, SYS_RES_IOPORT, &rid, 0, ~0,
+ ATA_IOSIZE, RF_ACTIVE)))
return ENXIO;
/* set the altport range */
@@ -86,9 +85,8 @@ ata_isa_probe(device_t dev)
/* allocate the altport range */
rid = ATA_CTLADDR_RID;
- ctlio = bus_alloc_resource(dev, SYS_RES_IOPORT, &rid, 0, ~0,
- ATA_CTLIOSIZE, RF_ACTIVE);
- if (!ctlio) {
+ if (!(ctlio = bus_alloc_resource(dev, SYS_RES_IOPORT, &rid, 0, ~0,
+ ATA_CTLIOSIZE, RF_ACTIVE))) {
bus_release_resource(dev, SYS_RES_IOPORT, ATA_IOADDR_RID, io);
return ENXIO;
}