In the disable_slot() routine, the variable "i" was

being used without ever being initialized.  From examining
the rest of the routine, it looks like this is a typo,
and it really should have been "1" instead of "i".

Submitted by:	mpp
This commit is contained in:
nate 1997-02-11 17:22:46 +00:00
parent 0982de6996
commit d8c61f2f9d

View File

@ -298,7 +298,7 @@ disable_slot(struct slot *sp)
INTRUNMASK(*devp->drv->imask,(1<<sp->irq));
/* Remove from the PCIC controller imask */
if (sp->ctrl->imask)
INTRUNMASK(*(sp->ctrl->imask), (i<<sp->irq));
INTRUNMASK(*(sp->ctrl->imask), (1<<sp->irq));
sp->irq = 0;
}
splx(s);