From 27cfca1ec98e91261b1a5355d10a8996464b63af Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Tue, 17 Mar 1998 22:05:47 +0000 Subject: 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 ... --- drivers/scsi/eata_pio_proc.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'drivers/scsi/eata_pio_proc.c') 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: -- cgit v1.2.3