diff options
author | Boaz Harrosh <bharrosh@panasas.com> | 2009-05-19 13:54:09 -0400 |
---|---|---|
committer | Jens Axboe <jens.axboe@oracle.com> | 2009-05-19 13:54:09 -0400 |
commit | ac36552a52a6ec8563ac0a109e2a0935673f4abb (patch) | |
tree | 44e6801df41b1faf4cea903eeb8f6326315ee3e1 /drivers | |
parent | 53674ac5a997a8eedbb2dfdc308b895170746c8b (diff) |
scsi_lib: remove unused variable
The last request completion cleanup in scsi_lib left an unused
this_count variable in scsi_io_completion().
(It was used before in a code segment that now uses blk_end_request_all())
Signed-off-by: Boaz Harrosh <bharrosh@panasas.com>
Acked-by: Tejun Heo <tj@kernel.org>
Acked-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/scsi/scsi_lib.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/scsi/scsi_lib.c b/drivers/scsi/scsi_lib.c index e410d667910d..d7c6c752e0a6 100644 --- a/drivers/scsi/scsi_lib.c +++ b/drivers/scsi/scsi_lib.c | |||
@@ -706,7 +706,6 @@ EXPORT_SYMBOL(scsi_release_buffers); | |||
706 | void scsi_io_completion(struct scsi_cmnd *cmd, unsigned int good_bytes) | 706 | void scsi_io_completion(struct scsi_cmnd *cmd, unsigned int good_bytes) |
707 | { | 707 | { |
708 | int result = cmd->result; | 708 | int result = cmd->result; |
709 | int this_count; | ||
710 | struct request_queue *q = cmd->device->request_queue; | 709 | struct request_queue *q = cmd->device->request_queue; |
711 | struct request *req = cmd->request; | 710 | struct request *req = cmd->request; |
712 | int error = 0; | 711 | int error = 0; |
@@ -789,7 +788,6 @@ void scsi_io_completion(struct scsi_cmnd *cmd, unsigned int good_bytes) | |||
789 | */ | 788 | */ |
790 | if (scsi_end_request(cmd, error, good_bytes, result == 0) == NULL) | 789 | if (scsi_end_request(cmd, error, good_bytes, result == 0) == NULL) |
791 | return; | 790 | return; |
792 | this_count = blk_rq_bytes(req); | ||
793 | 791 | ||
794 | error = -EIO; | 792 | error = -EIO; |
795 | 793 | ||