david/ipxe
david
/
ipxe
Archived
1
0
Fork 0

Need to leave structure zeroed

This commit is contained in:
Michael Brown 2005-04-22 15:33:35 +00:00
parent 8af80c6b10
commit 441ee4f8f3
2 changed files with 2 additions and 2 deletions

View File

@ -22,7 +22,7 @@ static int eisa_next_location ( struct bus_loc *bus_loc ) {
BUS_LOC_CHECK ( struct eisa_loc ); BUS_LOC_CHECK ( struct eisa_loc );
BUS_DEV_CHECK ( struct eisa_device ); BUS_DEV_CHECK ( struct eisa_device );
return ( ++eisa_loc->slot & EISA_MAX_SLOT ); return ( eisa_loc->slot = ( ++eisa_loc->slot & EISA_MAX_SLOT ) );
} }
/* /*

View File

@ -28,7 +28,7 @@ static int mca_next_location ( struct bus_loc *bus_loc ) {
BUS_LOC_CHECK ( struct mca_loc ); BUS_LOC_CHECK ( struct mca_loc );
BUS_DEV_CHECK ( struct mca_device ); BUS_DEV_CHECK ( struct mca_device );
return ( ++mca_loc->slot & MCA_MAX_SLOT_NR ); return ( mca_loc->slot = ( ++mca_loc->slot & MCA_MAX_SLOT_NR ) );
} }
/* /*