mirror of
https://github.com/ipxe/ipxe
synced 2025-12-23 13:30:57 +03:00
Need to leave structure zeroed
This commit is contained in:
@@ -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 ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -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 ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|||||||
Reference in New Issue
Block a user