diff options
author | Dave Jiang <dave.jiang@intel.com> | 2011-06-01 05:03:08 -0400 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2011-07-03 07:04:50 -0400 |
commit | 8d2c65c09c9e0adc16070562e7944c1c3277f332 (patch) | |
tree | 2cf1aca287cab7182952aa5a853cd8a759d93eb4 /drivers | |
parent | bf482c6069b514b7fe57a048ae1b6f11cf3bb10c (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')
-rw-r--r-- | drivers/scsi/isci/request.c | 8 | ||||
-rw-r--r-- | drivers/scsi/isci/task.c | 3 |
2 files changed, 1 insertions, 10 deletions
diff --git a/drivers/scsi/isci/request.c b/drivers/scsi/isci/request.c index 7c0928ed9e63..31c9b2c34259 100644 --- a/drivers/scsi/isci/request.c +++ b/drivers/scsi/isci/request.c | |||
@@ -211,11 +211,9 @@ static void scu_ssp_reqeust_construct_task_context( | |||
211 | struct scu_task_context *task_context) | 211 | struct scu_task_context *task_context) |
212 | { | 212 | { |
213 | dma_addr_t dma_addr; | 213 | dma_addr_t dma_addr; |
214 | struct scic_sds_controller *controller; | ||
215 | struct scic_sds_remote_device *target_device; | 214 | struct scic_sds_remote_device *target_device; |
216 | struct scic_sds_port *target_port; | 215 | struct scic_sds_port *target_port; |
217 | 216 | ||
218 | controller = scic_sds_request_get_controller(sds_request); | ||
219 | target_device = scic_sds_request_get_device(sds_request); | 217 | target_device = scic_sds_request_get_device(sds_request); |
220 | target_port = scic_sds_request_get_port(sds_request); | 218 | target_port = scic_sds_request_get_port(sds_request); |
221 | 219 | ||
@@ -384,11 +382,9 @@ static void scu_sata_reqeust_construct_task_context( | |||
384 | struct scu_task_context *task_context) | 382 | struct scu_task_context *task_context) |
385 | { | 383 | { |
386 | dma_addr_t dma_addr; | 384 | dma_addr_t dma_addr; |
387 | struct scic_sds_controller *controller; | ||
388 | struct scic_sds_remote_device *target_device; | 385 | struct scic_sds_remote_device *target_device; |
389 | struct scic_sds_port *target_port; | 386 | struct scic_sds_port *target_port; |
390 | 387 | ||
391 | controller = scic_sds_request_get_controller(sci_req); | ||
392 | target_device = scic_sds_request_get_device(sci_req); | 388 | target_device = scic_sds_request_get_device(sci_req); |
393 | target_port = scic_sds_request_get_port(sci_req); | 389 | target_port = scic_sds_request_get_port(sci_req); |
394 | 390 | ||
@@ -677,12 +673,10 @@ enum sci_status scic_task_request_construct_ssp( | |||
677 | static enum sci_status scic_io_request_construct_basic_sata(struct scic_sds_request *sci_req) | 673 | static enum sci_status scic_io_request_construct_basic_sata(struct scic_sds_request *sci_req) |
678 | { | 674 | { |
679 | enum sci_status status; | 675 | enum sci_status status; |
680 | struct scic_sds_stp_request *stp_req; | ||
681 | bool copy = false; | 676 | bool copy = false; |
682 | struct isci_request *isci_request = sci_req_to_ireq(sci_req); | 677 | struct isci_request *isci_request = sci_req_to_ireq(sci_req); |
683 | struct sas_task *task = isci_request_access_task(isci_request); | 678 | struct sas_task *task = isci_request_access_task(isci_request); |
684 | 679 | ||
685 | stp_req = &sci_req->stp.req; | ||
686 | sci_req->protocol = SCIC_STP_PROTOCOL; | 680 | sci_req->protocol = SCIC_STP_PROTOCOL; |
687 | 681 | ||
688 | copy = (task->data_dir == DMA_NONE) ? false : true; | 682 | copy = (task->data_dir == DMA_NONE) ? false : true; |
@@ -3190,7 +3184,6 @@ scu_smp_request_construct_task_context(struct scic_sds_request *sci_req, | |||
3190 | ssize_t req_len) | 3184 | ssize_t req_len) |
3191 | { | 3185 | { |
3192 | dma_addr_t dma_addr; | 3186 | dma_addr_t dma_addr; |
3193 | struct scic_sds_controller *scic; | ||
3194 | struct scic_sds_remote_device *sci_dev; | 3187 | struct scic_sds_remote_device *sci_dev; |
3195 | struct scic_sds_port *sci_port; | 3188 | struct scic_sds_port *sci_port; |
3196 | struct scu_task_context *task_context; | 3189 | struct scu_task_context *task_context; |
@@ -3202,7 +3195,6 @@ scu_smp_request_construct_task_context(struct scic_sds_request *sci_req, | |||
3202 | 3195 | ||
3203 | task_context = scic_sds_request_get_task_context(sci_req); | 3196 | task_context = scic_sds_request_get_task_context(sci_req); |
3204 | 3197 | ||
3205 | scic = scic_sds_request_get_controller(sci_req); | ||
3206 | sci_dev = scic_sds_request_get_device(sci_req); | 3198 | sci_dev = scic_sds_request_get_device(sci_req); |
3207 | sci_port = scic_sds_request_get_port(sci_req); | 3199 | sci_port = scic_sds_request_get_port(sci_req); |
3208 | 3200 | ||
diff --git a/drivers/scsi/isci/task.c b/drivers/scsi/isci/task.c index 93c75560a5c7..b54ef2b0fca1 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, | |||
1358 | enum sci_task_status completion_status) | 1358 | enum sci_task_status completion_status) |
1359 | { | 1359 | { |
1360 | struct isci_remote_device *idev = ireq->isci_device; | 1360 | struct isci_remote_device *idev = ireq->isci_device; |
1361 | enum isci_request_status old_state; | ||
1362 | struct isci_tmf *tmf = isci_request_access_tmf(ireq); | 1361 | struct isci_tmf *tmf = isci_request_access_tmf(ireq); |
1363 | struct completion *tmf_complete; | 1362 | struct completion *tmf_complete; |
1364 | struct scic_sds_request *sci_req = &ireq->sci; | 1363 | struct scic_sds_request *sci_req = &ireq->sci; |
@@ -1367,7 +1366,7 @@ isci_task_request_complete(struct isci_host *ihost, | |||
1367 | "%s: request = %p, status=%d\n", | 1366 | "%s: request = %p, status=%d\n", |
1368 | __func__, ireq, completion_status); | 1367 | __func__, ireq, completion_status); |
1369 | 1368 | ||
1370 | old_state = isci_request_change_state(ireq, completed); | 1369 | isci_request_change_state(ireq, completed); |
1371 | 1370 | ||
1372 | tmf->status = completion_status; | 1371 | tmf->status = completion_status; |
1373 | ireq->complete_in_target = true; | 1372 | ireq->complete_in_target = true; |