patch-2.3.41 linux/drivers/scsi/scsi_debug.c

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

diff -u --recursive --new-file v2.3.40/linux/drivers/scsi/scsi_debug.c linux/drivers/scsi/scsi_debug.c
@@ -544,18 +544,6 @@
 	return 0;
 }
 
-static void sd_test_done(Scsi_Cmnd * SCpnt)
-{
-	struct request *req;
-
-	req = &SCpnt->request;
-	req->rq_status = RQ_SCSI_DONE;	/* Busy, but indicate request done */
-
-	if (req->sem != NULL) {
-		up(req->sem);
-	}
-}
-
 static void scsi_debug_send_self_command(struct Scsi_Host * shpnt)
 {
 	static unsigned char cmd[6] =
@@ -575,7 +563,7 @@
         
         printk("Sending command\n");
         scsi_wait_cmd (scp, (void *) cmd, (void *) NULL,
-                       0, sd_test_done,  100, 3);
+                       0, 100, 3);
         
         printk("Releasing command\n");
         scsi_release_command(scp);

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)