patch-2.1.75 linux/drivers/scsi/eata_dma_proc.c

Next file: linux/drivers/scsi/eata_pio.h
Previous file: linux/drivers/scsi/eata_dma.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.74/linux/drivers/scsi/eata_dma_proc.c linux/drivers/scsi/eata_dma_proc.c
@@ -439,15 +439,12 @@
 	    goto stop_output;
     }
 
-#if 0
-    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;
@@ -458,10 +455,7 @@
 	    }
 	    if (pos > offset + length)
 		goto stop_output;
-	}
-	scd = scd->next;
     }
-#endif
     
  stop_output:
     DBG(DBG_PROC, printk("2pos: %ld offset: %ld len: %d\n", pos, offset, len));

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov