sdahci: fix mistake
This commit is contained in:
parent
470ea46374
commit
ec6714f5ed
1 changed files with 3 additions and 1 deletions
|
@ -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){
|
||||||
|
|
Loading…
Reference in a new issue