summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/isci/task.c
diff options
context:
space:
mode:
authorDave Jiang <dave.jiang@intel.com>2011-06-01 09:03:08 +0000
committerDan Williams <dan.j.williams@intel.com>2011-07-03 04:04:50 -0700
commit8d2c65c09c9e0adc16070562e7944c1c3277f332 (patch)
tree2cf1aca287cab7182952aa5a853cd8a759d93eb4 /drivers/scsi/isci/task.c
parentbf482c6069b514b7fe57a048ae1b6f11cf3bb10c (diff)
isci: Removing unused variables compiler warnings
Newer gcc's are better at identifying "set, but not used" variables. Signed-off-by: Dave Jiang <dave.jiang@intel.com> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/scsi/isci/task.c')
-rw-r--r--drivers/scsi/isci/task.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/scsi/isci/task.c b/drivers/scsi/isci/task.c
index 93c75560a5c..b54ef2b0fca 100644
--- a/drivers/scsi/isci/task.c
+++ b/drivers/scsi/isci/task.c
@@ -1358,7 +1358,6 @@ isci_task_request_complete(struct isci_host *ihost,
enum sci_task_status completion_status)
{
struct isci_remote_device *idev = ireq->isci_device;
- enum isci_request_status old_state;
struct isci_tmf *tmf = isci_request_access_tmf(ireq);
struct completion *tmf_complete;
struct scic_sds_request *sci_req = &ireq->sci;
@@ -1367,7 +1366,7 @@ isci_task_request_complete(struct isci_host *ihost,
"%s: request = %p, status=%d\n",
__func__, ireq, completion_status);
- old_state = isci_request_change_state(ireq, completed);
+ isci_request_change_state(ireq, completed);
tmf->status = completion_status;
ireq->complete_in_target = true;