Reset indentiation of ata_suspend() such that its clear we fall through
this function and that we aren't supposed to be controlled by the first if() conditional. Found with gcc. No functional change is intended with this commit.
This commit is contained in:
parent
c7940ca2ad
commit
a263a0427f
@ -316,13 +316,13 @@ ata_suspend(device_t dev)
|
||||
if (!dev || !(ch = device_get_softc(dev)))
|
||||
return ENXIO;
|
||||
|
||||
if (ch->flags & ATA_PERIODIC_POLL)
|
||||
callout_drain(&ch->poll_callout);
|
||||
mtx_lock(&ch->state_mtx);
|
||||
xpt_freeze_simq(ch->sim, 1);
|
||||
while (ch->state != ATA_IDLE)
|
||||
msleep(ch, &ch->state_mtx, PRIBIO, "atasusp", hz/100);
|
||||
mtx_unlock(&ch->state_mtx);
|
||||
if (ch->flags & ATA_PERIODIC_POLL)
|
||||
callout_drain(&ch->poll_callout);
|
||||
mtx_lock(&ch->state_mtx);
|
||||
xpt_freeze_simq(ch->sim, 1);
|
||||
while (ch->state != ATA_IDLE)
|
||||
msleep(ch, &ch->state_mtx, PRIBIO, "atasusp", hz/100);
|
||||
mtx_unlock(&ch->state_mtx);
|
||||
return(0);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user