Stop device enumeration when we see first empty slot.

This fixes operation in QEMU and saves some booting time as well.

Pointed out by:	Sagar Karandikar <skarandikar@berkeley.edu>
Sponsored by:	DARPA, AFRL
Sponsored by:	HEIF5
This commit is contained in:
Ruslan Bukin 2016-02-11 11:21:45 +00:00
parent 75d36854d4
commit 2150fb09b9

View File

@ -183,9 +183,8 @@ htif_enumerate(struct htif_softc *sc)
}
len = strnlen(id, sizeof(id));
if (len <= 0) {
continue;
}
if (len <= 0)
break;
if (bootverbose)
printf(" %d %s\n", i, id);