ソースを参照

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
 /*

読み込み中…
キャンセル
保存