summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/drivers/bus/eisa.c2
-rw-r--r--src/drivers/bus/mca.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/drivers/bus/eisa.c b/src/drivers/bus/eisa.c
index bb8df6617..c50d4b2b6 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 2cfbec4e4..5a9d339d0 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 ) );
}
/*