bs_ssc: remove unused variables
PATCH 1/1 bs_ssc: remove unused variables
The variables, transfer_length and residue are never used in the function tape_rdwr_request()
Signed-off-by Ruoyu <[email protected]>
--- usr/bs_ssc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
usr/bs_ssc.c +1 -3
@@ -435,7 +435,7 @@ static void tape_rdwr_request(struct scsi_cmd *cmd)struct ssc_info *ssc =dtype_priv (cmd->dev);struct blk_header_info *h = &ssc->c_blk;int ret, code; -uint32_t length, i, transfer_length, residue; +uint32_t length, i;int result =SAM_STAT_GOOD ;uint8_t *buf;int32_t count;
@@ -446,8 +446,6 @@ static void tape_rdwr_request(struct scsi_cmd *cmd) ret =0 ; length =0 ; i =0 ; - transfer_length =0 ; - residue =0 ; code =0 ; ssc =dtype_priv (cmd->dev);
Signature · 1 line
1.8.3.2
FUJITA Tomonori
AppliedQuoted 7 lines · On Wed, 23 Jul 2014 10:44:10 +0800 Ruoyu <[email protected]> wrote:
The variables,
transfer_lengthand residue are never used in the functiontape_rdwr_request()Signed-off-by Ruoyu <[email protected]>--- usr/bs_ssc.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
Applied, thanks.