summaryrefslogtreecommitdiffstats
path: root/src/drivers/bus/eisa.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/drivers/bus/eisa.c')
-rw-r--r--src/drivers/bus/eisa.c2
1 files changed, 1 insertions, 1 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 ) );
}
/*