summaryrefslogtreecommitdiffstats
path: root/sys/dev/ata
diff options
context:
space:
mode:
authorsos <sos@FreeBSD.org>2004-10-19 20:11:23 +0000
committersos <sos@FreeBSD.org>2004-10-19 20:11:23 +0000
commit214bd9b162a8457ac8768b7f8e9bf2de81a7e5d9 (patch)
treeb680d275478077b538edc2afd9b769c5f3c34aaa /sys/dev/ata
parent78aa67cb847dd16ef415f5ef631984945d3e3cb8 (diff)
downloadFreeBSD-src-214bd9b162a8457ac8768b7f8e9bf2de81a7e5d9.zip
FreeBSD-src-214bd9b162a8457ac8768b7f8e9bf2de81a7e5d9.tar.gz
Cosmetics
Diffstat (limited to 'sys/dev/ata')
-rw-r--r--sys/dev/ata/ata-queue.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/sys/dev/ata/ata-queue.c b/sys/dev/ata/ata-queue.c
index 3233272..f3bdfa3 100644
--- a/sys/dev/ata/ata-queue.c
+++ b/sys/dev/ata/ata-queue.c
@@ -182,15 +182,13 @@ ata_start(struct ata_channel *ch)
/* check for the right state */
mtx_lock(&ch->state_mtx);
if (ch->state == ATA_IDLE) {
+ ATA_DEBUG_RQ(request, "starting");
TAILQ_REMOVE(&ch->ata_queue, request, chain);
ch->running = request;
-
- ATA_DEBUG_RQ(request, "starting");
-
+ ch->state = ATA_ACTIVE;
if (!dumping)
callout_reset(&request->callout, request->timeout * hz,
(timeout_t*)ata_timeout, request);
-
if (ch->hw.begin_transaction(request) == ATA_OP_FINISHED) {
ch->running = NULL;
ch->state = ATA_IDLE;
@@ -200,8 +198,6 @@ ata_start(struct ata_channel *ch)
ata_finish(request);
return;
}
- else
- ch->state = ATA_ACTIVE;
}
mtx_unlock(&ch->state_mtx);
}
OpenPOWER on IntegriCloud