diff options
Diffstat (limited to 'drivers/scsi/eata_pio_proc.c')
-rw-r--r-- | drivers/scsi/eata_pio_proc.c | 10 |
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: |