summaryrefslogtreecommitdiffstats
path: root/src/drivers
diff options
context:
space:
mode:
authorMichael Brown2005-04-22 17:33:35 +0200
committerMichael Brown2005-04-22 17:33:35 +0200
commit441ee4f8f3a013547d466567dec63c4b8b126a2b (patch)
treeb60f2cef67cc23b9ab360258cfc6a987ec9feb01 /src/drivers
parentdisable() is a void (diff)
downloadipxe-441ee4f8f3a013547d466567dec63c4b8b126a2b.tar.gz
ipxe-441ee4f8f3a013547d466567dec63c4b8b126a2b.tar.xz
ipxe-441ee4f8f3a013547d466567dec63c4b8b126a2b.zip
Need to leave structure zeroed
Diffstat (limited to 'src/drivers')
-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 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 ) );
}
/*