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

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

diff -u --recursive --new-file v2.1.74/linux/drivers/scsi/g_NCR5380.c linux/drivers/scsi/g_NCR5380.c
@@ -658,8 +658,7 @@
 	PRINTP("  %d pending writes" ANDP hostdata->pendingw);
     if (hostdata->pendingr || hostdata->pendingw)
 	PRINTP("\n");
-    for (dev = scsi_devices; dev; dev=dev->next) {
-	if (dev->host == scsi_ptr) {
+    for (dev = scsi_ptr->host_queue; dev; dev=dev->next) {
 	    unsigned long br = hostdata->bytes_read[dev->id];
 	    unsigned long bw = hostdata->bytes_write[dev->id];
 	    long tr = hostdata->time_read[dev->id] / HZ;
@@ -687,7 +686,6 @@
 	    if (tw)
 		PRINTP(" @ %5ld bps" ANDP bw / tw); 
 	    PRINTP("\n");
-	}
     }
 #endif
 	

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