Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=26ff776d1dd9147eb658c55f1df42c2c232036b5
Commit:     26ff776d1dd9147eb658c55f1df42c2c232036b5
Parent:     700ca0e7016008f65f75c2629e309fc03347c856
Author:     Andrew Vasquez <[EMAIL PROTECTED]>
AuthorDate: Thu Sep 20 14:07:47 2007 -0700
Committer:  James Bottomley <[EMAIL PROTECTED]>
CommitDate: Fri Oct 12 14:50:29 2007 -0400

    [SCSI] qla2xxx: Sparse cleanups in qla_mid.c
    
    Make several needlessly global functions static:
    - qla2x00_mark_vp_devices_dead()
    - qla24xx_configure_vp()
    
    Remove unused function qla24xx_modify_vport().
    
    Signed-off-by: Andrew Vasquez <[EMAIL PROTECTED]>
    Signed-off-by: James Bottomley <[EMAIL PROTECTED]>
---
 drivers/scsi/qla2xxx/qla_mid.c |   34 ++--------------------------------
 1 files changed, 2 insertions(+), 32 deletions(-)

diff --git a/drivers/scsi/qla2xxx/qla_mid.c b/drivers/scsi/qla2xxx/qla_mid.c
index 1a2cdcd..821ee74 100644
--- a/drivers/scsi/qla2xxx/qla_mid.c
+++ b/drivers/scsi/qla2xxx/qla_mid.c
@@ -104,7 +104,7 @@ qla24xx_find_vhost_by_name(scsi_qla_host_t *ha, uint8_t 
*port_name)
  *
  * Context:
  */
-void
+static void
 qla2x00_mark_vp_devices_dead(scsi_qla_host_t *vha)
 {
        fc_port_t *fcport;
@@ -179,37 +179,7 @@ enable_failed:
        return 1;
 }
 
-/**
- * qla24xx_modify_vport() -  Modifies the virtual fabric port's configuration
- * @ha: HA context
- * @vp: pointer to buffer of virtual port parameters.
- * @ret_code: return error code:
- *
- * Returns the virtual port id, or MAX_VSAN_ID, if couldn't create.
- */
-uint32_t
-qla24xx_modify_vhba(scsi_qla_host_t *ha, vport_params_t *vp, uint32_t *vp_id)
-{
-       scsi_qla_host_t *vha;
-
-       vha = qla24xx_find_vhost_by_name(ha, vp->port_name);
-       if (!vha) {
-               *vp_id = MAX_NUM_VPORT_LOOP;
-               return VP_RET_CODE_WWPN;
-       }
-
-       if (qla24xx_enable_vp(vha)) {
-               scsi_host_put(vha->host);
-               qla2x00_mem_free(vha);
-               *vp_id = MAX_NUM_VPORT_LOOP;
-               return VP_RET_CODE_RESOURCES;
-       }
-
-       *vp_id = vha->vp_idx;
-       return VP_RET_CODE_OK;
-}
-
-void
+static void
 qla24xx_configure_vp(scsi_qla_host_t *vha)
 {
        struct fc_vport *fc_vport;
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to