stgt.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Ruoyu <liangry@ucweb.com>
To: stgt@vger.kernel.org
Cc: Ruoyu <liangry@ucweb.com>
Subject: [PATCH] bs_ssc: remove unused variables
Date: Wed, 23 Jul 2014 10:44:10 +0800	[thread overview]
Message-ID: <1406083450-29957-1-git-send-email-liangry@ucweb.com> (raw)

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

Signed-off-by: Ruoyu <liangry@ucweb.com>
---
 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


             reply	other threads:[~2014-07-23  2:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-23  2:44 Ruoyu [this message]
2014-07-25  7:31 ` [PATCH] bs_ssc: remove unused variables FUJITA Tomonori

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1406083450-29957-1-git-send-email-liangry@ucweb.com \
    --to=liangry@ucweb.com \
    --cc=stgt@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).