summaryrefslogtreecommitdiff
path: root/drivers/scsi/isci/remote_node_context.c
diff options
context:
space:
mode:
authorMaciej Patelczyk <maciej.patelczyk@intel.com>2011-04-29 02:06:26 +0400
committerDan Williams <dan.j.williams@intel.com>2011-07-03 15:00:38 +0400
commitaf23e85737253624cde84704008be40355ff6922 (patch)
tree98fe6c8aa6d86e08bb9799aef2dc97b78c2f5aee /drivers/scsi/isci/remote_node_context.c
parent5d937e966d383c4012c19b0e47dc196ba505eb19 (diff)
downloadlinux-af23e85737253624cde84704008be40355ff6922.tar.xz
isci: Removed sci_base_object from scic_sds_remote_node_context.
The 'struct sci_base_object' was removed from the struct scic_sds_remote_node_context. Signed-off-by: Maciej Patelczyk <maciej.patelczyk@intel.com> Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/scsi/isci/remote_node_context.c')
-rw-r--r--drivers/scsi/isci/remote_node_context.c33
1 files changed, 9 insertions, 24 deletions
diff --git a/drivers/scsi/isci/remote_node_context.c b/drivers/scsi/isci/remote_node_context.c
index bc51ecf76b14..49d2dc5374f4 100644
--- a/drivers/scsi/isci/remote_node_context.c
+++ b/drivers/scsi/isci/remote_node_context.c
@@ -972,9 +972,7 @@ static void scic_sds_remote_node_context_invalidate_context_buffer(
*/
static void scic_sds_remote_node_context_initial_state_enter(void *object)
{
- struct scic_sds_remote_node_context *rnc;
-
- rnc = (struct scic_sds_remote_node_context *)object;
+ struct scic_sds_remote_node_context *rnc = object;
SET_STATE_HANDLER(
rnc,
@@ -1002,9 +1000,7 @@ static void scic_sds_remote_node_context_initial_state_enter(void *object)
*/
static void scic_sds_remote_node_context_posting_state_enter(void *object)
{
- struct scic_sds_remote_node_context *sci_rnc;
-
- sci_rnc = (struct scic_sds_remote_node_context *)object;
+ struct scic_sds_remote_node_context *sci_rnc = object;
SET_STATE_HANDLER(
sci_rnc,
@@ -1022,9 +1018,7 @@ static void scic_sds_remote_node_context_posting_state_enter(void *object)
*/
static void scic_sds_remote_node_context_invalidating_state_enter(void *object)
{
- struct scic_sds_remote_node_context *rnc;
-
- rnc = (struct scic_sds_remote_node_context *)object;
+ struct scic_sds_remote_node_context *rnc = object;
SET_STATE_HANDLER(
rnc,
@@ -1042,11 +1036,10 @@ static void scic_sds_remote_node_context_invalidating_state_enter(void *object)
*/
static void scic_sds_remote_node_context_resuming_state_enter(void *object)
{
- struct scic_sds_remote_node_context *rnc;
+ struct scic_sds_remote_node_context *rnc = object;
struct scic_sds_remote_device *sci_dev;
struct domain_device *dev;
- rnc = (struct scic_sds_remote_node_context *)object;
sci_dev = rnc_to_dev(rnc);
dev = sci_dev_to_domain(sci_dev);
@@ -1077,9 +1070,7 @@ static void scic_sds_remote_node_context_resuming_state_enter(void *object)
*/
static void scic_sds_remote_node_context_ready_state_enter(void *object)
{
- struct scic_sds_remote_node_context *rnc;
-
- rnc = (struct scic_sds_remote_node_context *)object;
+ struct scic_sds_remote_node_context *rnc = object;
SET_STATE_HANDLER(
rnc,
@@ -1101,9 +1092,7 @@ static void scic_sds_remote_node_context_ready_state_enter(void *object)
*/
static void scic_sds_remote_node_context_tx_suspended_state_enter(void *object)
{
- struct scic_sds_remote_node_context *rnc;
-
- rnc = (struct scic_sds_remote_node_context *)object;
+ struct scic_sds_remote_node_context *rnc = object;
SET_STATE_HANDLER(
rnc,
@@ -1122,9 +1111,7 @@ static void scic_sds_remote_node_context_tx_suspended_state_enter(void *object)
static void scic_sds_remote_node_context_tx_rx_suspended_state_enter(
void *object)
{
- struct scic_sds_remote_node_context *rnc;
-
- rnc = (struct scic_sds_remote_node_context *)object;
+ struct scic_sds_remote_node_context *rnc = object;
SET_STATE_HANDLER(
rnc,
@@ -1143,9 +1130,7 @@ static void scic_sds_remote_node_context_tx_rx_suspended_state_enter(
static void scic_sds_remote_node_context_await_suspension_state_enter(
void *object)
{
- struct scic_sds_remote_node_context *rnc;
-
- rnc = (struct scic_sds_remote_node_context *)object;
+ struct scic_sds_remote_node_context *rnc = object;
SET_STATE_HANDLER(
rnc,
@@ -1193,7 +1178,7 @@ void scic_sds_remote_node_context_construct(struct scic_sds_remote_node_context
sci_base_state_machine_construct(
&rnc->state_machine,
- &rnc->parent,
+ rnc,
scic_sds_remote_node_context_state_table,
SCIC_SDS_REMOTE_NODE_CONTEXT_INITIAL_STATE
);