Browse Source

Need to leave structure zeroed

tags/v0.9.3
Michael Brown 20 years ago
parent
commit
441ee4f8f3
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      src/drivers/bus/eisa.c
  2. 1
    1
      src/drivers/bus/mca.c

+ 1
- 1
src/drivers/bus/eisa.c View File

22
 	BUS_LOC_CHECK ( struct eisa_loc );
22
 	BUS_LOC_CHECK ( struct eisa_loc );
23
 	BUS_DEV_CHECK ( struct eisa_device );
23
 	BUS_DEV_CHECK ( struct eisa_device );
24
 
24
 
25
-	return ( ++eisa_loc->slot & EISA_MAX_SLOT );
25
+	return ( eisa_loc->slot = ( ++eisa_loc->slot & EISA_MAX_SLOT ) );
26
 }
26
 }
27
 
27
 
28
 /*
28
 /*

+ 1
- 1
src/drivers/bus/mca.c View File

28
 	BUS_LOC_CHECK ( struct mca_loc );
28
 	BUS_LOC_CHECK ( struct mca_loc );
29
 	BUS_DEV_CHECK ( struct mca_device );
29
 	BUS_DEV_CHECK ( struct mca_device );
30
 
30
 
31
-	return ( ++mca_loc->slot & MCA_MAX_SLOT_NR );
31
+	return ( mca_loc->slot = ( ++mca_loc->slot & MCA_MAX_SLOT_NR ) );
32
 }
32
 }
33
 
33
 
34
 /*
34
 /*

Loading…
Cancel
Save