From 441ee4f8f3a013547d466567dec63c4b8b126a2b Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Fri, 22 Apr 2005 15:33:35 +0000 Subject: [PATCH] Need to leave structure zeroed --- src/drivers/bus/eisa.c | 2 +- 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 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 ) ); } /*