]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] remove scsi_eh_retry_cmd
authorAndrew Morton <akpm@digeo.com>
Fri, 14 Mar 2003 12:10:37 +0000 (06:10 -0600)
committerChristoph Hellwig <hch@sgi.com>
Fri, 14 Mar 2003 12:10:37 +0000 (06:10 -0600)
Compile warnings are useful...

drivers/scsi/scsi_error.c

index eec12d6a61ba3deed917a8dee0ead22c1d6ffde0..b9c826ed12eb181b25041ac70c5600b9067edacf 100644 (file)
@@ -596,28 +596,6 @@ static int scsi_request_sense(struct scsi_cmnd *scmd)
        return rtn;
 }
 
-/**
- * scsi_eh_retry_cmd - Retry the original command
- * @scmd:      Original failed SCSI cmd.
- *
- * Notes:
- *    This function will *not* return until the command either times out,
- *    or it completes.
- **/
-static int scsi_eh_retry_cmd(struct scsi_cmnd *scmd)
-{
-       int rtn = SUCCESS;
-
-       for (; scmd->retries < scmd->allowed; scmd->retries++) {
-               scsi_setup_cmd_retry(scmd);
-               rtn = scsi_send_eh_cmnd(scmd, scmd->timeout_per_command);
-               if (rtn != NEEDS_RETRY)
-                       break;
-       }
-
-       return rtn;
-}
-
 /**
  * scsi_eh_finish_cmd - Handle a cmd that eh is finished with.
  * @scmd:      Original SCSI cmd that eh has finished.