summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/eata_pio_proc.c
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>1998-03-17 22:05:47 +0000
committerRalf Baechle <ralf@linux-mips.org>1998-03-17 22:05:47 +0000
commit27cfca1ec98e91261b1a5355d10a8996464b63af (patch)
tree8e895a53e372fa682b4c0a585b9377d67ed70d0e /drivers/scsi/eata_pio_proc.c
parent6a76fb7214c477ccf6582bd79c5b4ccc4f9c41b1 (diff)
Look Ma' what I found on my harddisk ...
o New faster syscalls for 2.1.x, too o Upgrade to 2.1.89. Don't try to run this. It's flaky as hell. But feel free to debug ...
Diffstat (limited to 'drivers/scsi/eata_pio_proc.c')
-rw-r--r--drivers/scsi/eata_pio_proc.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/drivers/scsi/eata_pio_proc.c b/drivers/scsi/eata_pio_proc.c
index d98958703..829053315 100644
--- a/drivers/scsi/eata_pio_proc.c
+++ b/drivers/scsi/eata_pio_proc.c
@@ -81,14 +81,12 @@ int eata_pio_proc_info(char *buffer, char **start, off_t offset, int length,
if (pos > offset + length)
goto stop_output;
- scd = scsi_devices;
-
- size = sprintf(buffer+len,"Attached devices: %s\n", (scd)?"":"none");
+ size = sprintf(buffer+len,"Attached devices: %s\n",
+ (HBA_ptr->host_queue)?"":"none");
len += size;
pos = begin + len;
- while (scd) {
- if (scd->host == HBA_ptr) {
+ for(scd = HBA_ptr->host_queue; scd; scd = scd->next) {
proc_print_scsidevice(scd, buffer, &size, len);
len += size;
pos = begin + len;
@@ -99,8 +97,6 @@ int eata_pio_proc_info(char *buffer, char **start, off_t offset, int length,
}
if (pos > offset + length)
goto stop_output;
- }
- scd = scd->next;
}
stop_output: