From 3f77da8c4dc5fdbb27e0a2bc68e6037fb42fa8cd Mon Sep 17 00:00:00 2001 From: Vladislav Bolkhovitin Date: Fri, 28 Dec 2012 23:19:13 +0000 Subject: [PATCH] Fix ILI handling to have full 32 bits handling git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@4669 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- scst/src/dev_handlers/scst_tape.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/scst/src/dev_handlers/scst_tape.c b/scst/src/dev_handlers/scst_tape.c index ec40a9cb7..30742da76 100644 --- a/scst/src/dev_handlers/scst_tape.c +++ b/scst/src/dev_handlers/scst_tape.c @@ -286,8 +286,6 @@ static int tape_done(struct scst_cmd *cmd) res = scst_tape_generic_dev_done(cmd, tape_set_block_size); else if ((status == SAM_STAT_CHECK_CONDITION) && scst_sense_valid(cmd->sense)) { - struct tape_params *params; - TRACE_DBG("Extended sense %x", scst_sense_response_code(cmd->sense)); if (scst_sense_response_code(cmd->sense) != 0x70) { @@ -301,7 +299,7 @@ static int tape_done(struct scst_cmd *cmd) if (opcode == READ_6 && !(cmd->cdb[1] & SILI_BIT) && (cmd->sense[2] & 0xe0)) { /* EOF, EOM, or ILI */ - int TransferLength, Residue = 0; + unsigned int TransferLength, Residue = 0; if ((cmd->sense[2] & 0x0f) == BLANK_CHECK) /* No need for EOM in this case */ cmd->sense[2] &= 0xcf; @@ -321,8 +319,6 @@ static int tape_done(struct scst_cmd *cmd) * *_detach() can not be called, when * there are existing commands. */ - params = (struct tape_params *) - cmd->dev->dh_priv; resp_data_len *= cmd->dev->block_size; } scst_set_resp_data_len(cmd, resp_data_len);