]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
be2iscsi 4.1.239.0 [PATCH 01/10] Remove host and session casts
authorChuck Anderson <chuck.anderson@oracle.com>
Sat, 17 Dec 2011 03:01:28 +0000 (19:01 -0800)
committerChuck Anderson <chuck.anderson@oracle.com>
Sat, 17 Dec 2011 03:52:53 +0000 (19:52 -0800)
Dec. 16, 2011
Oracle bugzilla 13257
Oracle bug 13465921
be2iscsi HBA driver v4.1.239.0 patch set for UEK R2(2.6.39)
jayamohan.kallickal@emulex.com

Ported driver version 4.1.239.0 to UEK2 2.6.39-100.0.17 (was 2.103.298.0)

Comments from the patch headers:

  Commit ID : 3093b0484d77ea774d74dfd7f5419831a716a9aa
  [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.
---
 be_iscsi.c |    7 +++----
 1 files changed, 3 insertions(+), 4 deletions(-)

Signed-off-by: Chuck Anderson <chuck.anderson@oracle.com>
drivers/scsi/be2iscsi/be_iscsi.c

index 3cad1060502302a92dd78a2566482ceb2986c376..14b8870127a706a9845426bb47167c5b04ff6a0c 100644 (file)
@@ -177,9 +177,8 @@ int beiscsi_conn_bind(struct iscsi_cls_session *cls_session,
 {
        struct iscsi_conn *conn = cls_conn->dd_data;
        struct beiscsi_conn *beiscsi_conn = conn->dd_data;
-       struct Scsi_Host *shost =
-               (struct Scsi_Host *)iscsi_session_to_shost(cls_session);
-       struct beiscsi_hba *phba = (struct beiscsi_hba *)iscsi_host_priv(shost);
+       struct Scsi_Host *shost = iscsi_session_to_shost(cls_session);
+       struct beiscsi_hba *phba = iscsi_host_priv(shost);
        struct beiscsi_endpoint *beiscsi_ep;
        struct iscsi_endpoint *ep;
 
@@ -290,7 +289,7 @@ int beiscsi_set_param(struct iscsi_cls_conn *cls_conn,
 int beiscsi_get_host_param(struct Scsi_Host *shost,
                           enum iscsi_host_param param, char *buf)
 {
-       struct beiscsi_hba *phba = (struct beiscsi_hba *)iscsi_host_priv(shost);
+       struct beiscsi_hba *phba = iscsi_host_priv(shost);
        int status = 0;
 
        SE_DEBUG(DBG_LVL_8, "In beiscsi_get_host_param, param= %d\n", param);