[PATCH] bs_ssc: remove unused variables

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

Signed-off-by: Ruoyu <liangry@xxxxxxxxx>
---
 usr/bs_ssc.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/usr/bs_ssc.c b/usr/bs_ssc.c
index a7e062d..fe1ff18 100644
--- a/usr/bs_ssc.c
+++ b/usr/bs_ssc.c
@@ -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);
 
-- 
1.8.3.2


--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux SCSI]     [Linux RAID]     [Linux Clusters]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]

  Powered by Linux