Преглед изворни кода

Need to leave structure zeroed

tags/v0.9.3
Michael Brown пре 20 година
родитељ
комит
441ee4f8f3
2 измењених фајлова са 2 додато и 2 уклоњено
  1. 1
    1
      src/drivers/bus/eisa.c
  2. 1
    1
      src/drivers/bus/mca.c

+ 1
- 1
src/drivers/bus/eisa.c Прегледај датотеку

@@ -22,7 +22,7 @@ static int eisa_next_location ( struct bus_loc *bus_loc ) {
22 22
 	BUS_LOC_CHECK ( struct eisa_loc );
23 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 Прегледај датотеку

@@ -28,7 +28,7 @@ static int mca_next_location ( struct bus_loc *bus_loc ) {
28 28
 	BUS_LOC_CHECK ( struct mca_loc );
29 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…
Откажи
Сачувај