kern: usb uhci: fix test of ports in init()

This commit is contained in:
Giacomo Tesio 2020-02-17 00:44:58 +01:00
parent 75b451ea1c
commit 7385e37b13
1 changed files with 1 additions and 1 deletions

View File

@ -2235,7 +2235,7 @@ init(Hci *hp)
/* guess other ports */
for(i = 2; i < 6; i++){
sts = INS(PORT(i));
if(sts != 0xFFFF && (sts & PSreserved1) == 1){
if(sts != 0xFFFF && (sts & PSreserved1) == PSreserved1){
dprint(" psc%d %#ux", i, sts);
hp->nports++;
}else