sdahci: fix mistake

This commit is contained in:
cinap_lenrek 2012-12-29 11:27:24 +01:00
parent 470ea46374
commit ec6714f5ed

View file

@ -901,8 +901,10 @@ dstatus(Drive *d, int s)
static void static void
configdrive(Drive *d) configdrive(Drive *d)
{ {
if(ahciconfigdrive(d->ctlr->hba, &d->portc, d->mode) == -1) if(ahciconfigdrive(d->ctlr->hba, &d->portc, d->mode) == -1){
dstatus(d, Dportreset); dstatus(d, Dportreset);
return;
}
ilock(d); ilock(d);
switch(d->port->sstatus & Smask){ switch(d->port->sstatus & Smask){