diff --git a/src/drivers/bus/eisa.c b/src/drivers/bus/eisa.c index bb8df661..c50d4b2b 100644 --- a/src/drivers/bus/eisa.c +++ b/src/drivers/bus/eisa.c @@ -22,7 +22,7 @@ static int eisa_next_location ( struct bus_loc *bus_loc ) { BUS_LOC_CHECK ( struct eisa_loc ); BUS_DEV_CHECK ( struct eisa_device ); - return ( ++eisa_loc->slot & EISA_MAX_SLOT ); + return ( eisa_loc->slot = ( ++eisa_loc->slot & EISA_MAX_SLOT ) ); } /* diff --git a/src/drivers/bus/mca.c b/src/drivers/bus/mca.c index 2cfbec4e..5a9d339d 100644 --- a/src/drivers/bus/mca.c +++ b/src/drivers/bus/mca.c @@ -28,7 +28,7 @@ static int mca_next_location ( struct bus_loc *bus_loc ) { BUS_LOC_CHECK ( struct mca_loc ); 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 ) ); } /*