diff options
author | Dan Williams <dan.j.williams@intel.com> | 2011-07-01 05:25:15 -0400 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2011-07-03 07:04:52 -0400 |
commit | 34a991587a5cc9f78960c2c9beea217866458c41 (patch) | |
tree | 824bfb5d50705223339e2bd3369ae3194f2eece3 /drivers/scsi/isci/host.c | |
parent | 89a7301f21fb00e753089671eb9e4132aab8ea08 (diff) |
isci: kill 'get/set' macros
Most of these simple dereference macros are longer than their open coded
equivalent. Deleting enum sci_controller_mode is thrown in for good
measure.
Reported-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/scsi/isci/host.c')
-rw-r--r-- | drivers/scsi/isci/host.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/drivers/scsi/isci/host.c b/drivers/scsi/isci/host.c index f31f64e4b713..88e731333532 100644 --- a/drivers/scsi/isci/host.c +++ b/drivers/scsi/isci/host.c | |||
@@ -2627,7 +2627,7 @@ enum sci_status sci_controller_start_io(struct isci_host *ihost, | |||
2627 | return status; | 2627 | return status; |
2628 | 2628 | ||
2629 | set_bit(IREQ_ACTIVE, &ireq->flags); | 2629 | set_bit(IREQ_ACTIVE, &ireq->flags); |
2630 | sci_controller_post_request(ihost, sci_request_get_post_context(ireq)); | 2630 | sci_controller_post_request(ihost, ireq->post_context); |
2631 | return SCI_SUCCESS; | 2631 | return SCI_SUCCESS; |
2632 | } | 2632 | } |
2633 | 2633 | ||
@@ -2707,7 +2707,7 @@ enum sci_status sci_controller_continue_io(struct isci_request *ireq) | |||
2707 | } | 2707 | } |
2708 | 2708 | ||
2709 | set_bit(IREQ_ACTIVE, &ireq->flags); | 2709 | set_bit(IREQ_ACTIVE, &ireq->flags); |
2710 | sci_controller_post_request(ihost, sci_request_get_post_context(ireq)); | 2710 | sci_controller_post_request(ihost, ireq->post_context); |
2711 | return SCI_SUCCESS; | 2711 | return SCI_SUCCESS; |
2712 | } | 2712 | } |
2713 | 2713 | ||
@@ -2747,9 +2747,7 @@ enum sci_task_status sci_controller_start_task(struct isci_host *ihost, | |||
2747 | return SCI_SUCCESS; | 2747 | return SCI_SUCCESS; |
2748 | case SCI_SUCCESS: | 2748 | case SCI_SUCCESS: |
2749 | set_bit(IREQ_ACTIVE, &ireq->flags); | 2749 | set_bit(IREQ_ACTIVE, &ireq->flags); |
2750 | 2750 | sci_controller_post_request(ihost, ireq->post_context); | |
2751 | sci_controller_post_request(ihost, | ||
2752 | sci_request_get_post_context(ireq)); | ||
2753 | break; | 2751 | break; |
2754 | default: | 2752 | default: |
2755 | break; | 2753 | break; |