Need to leave structure zeroed
This commit is contained in:
parent
8af80c6b10
commit
441ee4f8f3
|
@ -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