diff options
| author | Michael Brown | 2005-04-22 17:33:35 +0200 |
|---|---|---|
| committer | Michael Brown | 2005-04-22 17:33:35 +0200 |
| commit | 441ee4f8f3a013547d466567dec63c4b8b126a2b (patch) | |
| tree | b60f2cef67cc23b9ab360258cfc6a987ec9feb01 | |
| parent | disable() is a void (diff) | |
| download | ipxe-441ee4f8f3a013547d466567dec63c4b8b126a2b.tar.gz ipxe-441ee4f8f3a013547d466567dec63c4b8b126a2b.tar.xz ipxe-441ee4f8f3a013547d466567dec63c4b8b126a2b.zip | |
Need to leave structure zeroed
| -rw-r--r-- | src/drivers/bus/eisa.c | 2 | ||||
| -rw-r--r-- | src/drivers/bus/mca.c | 2 |
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 ) ); } /* |
