From 306fda03757fc4b826a31c4faa118530358ff7b2 Mon Sep 17 00:00:00 2001 From: Andrew Morton Date: Fri, 14 Mar 2003 06:10:37 -0600 Subject: [PATCH] [PATCH] remove scsi_eh_retry_cmd Compile warnings are useful... --- drivers/scsi/scsi_error.c | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/drivers/scsi/scsi_error.c b/drivers/scsi/scsi_error.c index eec12d6a61ba3..b9c826ed12eb1 100644 --- a/drivers/scsi/scsi_error.c +++ b/drivers/scsi/scsi_error.c @@ -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. -- 2.53.0