diff options
author | Mike Christie <michaelc@cs.wisc.edu> | 2011-07-25 14:48:46 -0400 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2011-08-27 10:36:17 -0400 |
commit | 3093b0484d77ea774d74dfd7f5419831a716a9aa (patch) | |
tree | 34b1afe3fea1f90fa1acac25015da3647b1479f7 /drivers/scsi/be2iscsi/be_iscsi.c | |
parent | f27fb2ef7bd88c9c5f67befe4d85e2155aa0e1a8 (diff) |
[SCSI] be2iscsi: remove host and session casts
iscsi_session_to_shost is a macro around dev_to_shost which returns a
Scsi_Host so there is no need to cast.
iscsi_session_to_shost is a macro around shost_priv which
returns a void pointer so no need to cast.
Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/be2iscsi/be_iscsi.c')
-rw-r--r-- | drivers/scsi/be2iscsi/be_iscsi.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/scsi/be2iscsi/be_iscsi.c b/drivers/scsi/be2iscsi/be_iscsi.c index feadaa288080..8b002f6db6ca 100644 --- a/drivers/scsi/be2iscsi/be_iscsi.c +++ b/drivers/scsi/be2iscsi/be_iscsi.c | |||
@@ -177,9 +177,8 @@ int beiscsi_conn_bind(struct iscsi_cls_session *cls_session, | |||
177 | { | 177 | { |
178 | struct iscsi_conn *conn = cls_conn->dd_data; | 178 | struct iscsi_conn *conn = cls_conn->dd_data; |
179 | struct beiscsi_conn *beiscsi_conn = conn->dd_data; | 179 | struct beiscsi_conn *beiscsi_conn = conn->dd_data; |
180 | struct Scsi_Host *shost = | 180 | struct Scsi_Host *shost = iscsi_session_to_shost(cls_session); |
181 | (struct Scsi_Host *)iscsi_session_to_shost(cls_session); | 181 | struct beiscsi_hba *phba = iscsi_host_priv(shost); |
182 | struct beiscsi_hba *phba = (struct beiscsi_hba *)iscsi_host_priv(shost); | ||
183 | struct beiscsi_endpoint *beiscsi_ep; | 182 | struct beiscsi_endpoint *beiscsi_ep; |
184 | struct iscsi_endpoint *ep; | 183 | struct iscsi_endpoint *ep; |
185 | 184 | ||
@@ -290,7 +289,7 @@ int beiscsi_set_param(struct iscsi_cls_conn *cls_conn, | |||
290 | int beiscsi_get_host_param(struct Scsi_Host *shost, | 289 | int beiscsi_get_host_param(struct Scsi_Host *shost, |
291 | enum iscsi_host_param param, char *buf) | 290 | enum iscsi_host_param param, char *buf) |
292 | { | 291 | { |
293 | struct beiscsi_hba *phba = (struct beiscsi_hba *)iscsi_host_priv(shost); | 292 | struct beiscsi_hba *phba = iscsi_host_priv(shost); |
294 | int status = 0; | 293 | int status = 0; |
295 | 294 | ||
296 | SE_DEBUG(DBG_LVL_8, "In beiscsi_get_host_param, param= %d\n", param); | 295 | SE_DEBUG(DBG_LVL_8, "In beiscsi_get_host_param, param= %d\n", param); |