Skip to contentSkip to conversation

bs_ssc: remove unused variables

PATCH Applied Ruoyu 2 participants 2 messages Jul 23, 2014 – Jul 25, 2014 Kbuild

lore
Share & tools
lore

Ruoyu

author
#0 lore raw

PATCH 1/1 bs_ssc: remove unused variables

The variables, transfer_length and residue are never used in the function tape_rdwr_request()

---
 usr/bs_ssc.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
usr/bs_ssc.c +1 -3
index a7e062d..fe1ff18 100644
@@ -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
#1 lore raw
Quoted 7 lines · On Wed, 23 Jul 2014 10:44:10 +0800 Ruoyu <[email protected]> wrote:

The variables, transfer_length and residue are never used in the function tape_rdwr_request()

---
 usr/bs_ssc.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

Applied, thanks.