patch-2.1.120 linux/drivers/block/ide.c
Next file: linux/drivers/block/nbd.c
Previous file: linux/drivers/block/ide-pmac.c
Back to the patch index
Back to the overall index
- Lines: 20
- Date:
Sun Aug 30 11:27:35 1998
- Orig file:
v2.1.119/linux/drivers/block/ide.c
- Orig date:
Thu Aug 27 19:56:29 1998
diff -u --recursive --new-file v2.1.119/linux/drivers/block/ide.c linux/drivers/block/ide.c
@@ -1657,7 +1657,7 @@
ide_drive_t *drive, *d;
ide_hwif_t *hwif, *g;
ide_hwgroup_t *hwgroup;
- int irq_count = 0, unit;
+ int irq_count = 0, unit, i;
unsigned long flags;
if (index >= MAX_HWIFS)
@@ -1704,8 +1704,8 @@
* the hwgroup if we were the only member
*/
d = hwgroup->drive;
- for (index = 0; index < MAX_DRIVES; ++index) {
- drive = &hwif->drives[index];
+ for (i = 0; i < MAX_DRIVES; ++i) {
+ drive = &hwif->drives[i];
if (!drive->present)
continue;
while (hwgroup->drive->next != drive)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov