[SCSI] qla4xxx: Remove unnecessary code from qla4xxx_init_local_data
authorKaren Higgins <karen.higgins@qlogic.com>
Mon, 21 Jan 2013 04:50:59 +0000 (23:50 -0500)
committerJames Bottomley <JBottomley@Parallels.com>
Wed, 30 Jan 2013 02:43:50 +0000 (13:43 +1100)
Removed unnecessary calls to qla4xxx_get_firmware_status from
function qla4xxx_init_local_data

Signed-off-by: Karen Higgins <karen.higgins@qlogic.com>
Signed-off-by: Vikas Chaudhary <vikas.chaudhary@qlogic.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
drivers/scsi/qla4xxx/ql4_init.c

index 2045fd79095f366aae893073defbc0e7d14d18cd..8fc8548ba4baf1171fb0d707d63a7463ba8a1766 100644 (file)
@@ -195,12 +195,10 @@ exit_get_sys_info_no_free:
  * @ha: pointer to host adapter structure.
  *
  **/
-static int qla4xxx_init_local_data(struct scsi_qla_host *ha)
+static void qla4xxx_init_local_data(struct scsi_qla_host *ha)
 {
        /* Initialize aen queue */
        ha->aen_q_count = MAX_AEN_ENTRIES;
-
-       return qla4xxx_get_firmware_status(ha);
 }
 
 static uint8_t
@@ -951,8 +949,7 @@ int qla4xxx_initialize_adapter(struct scsi_qla_host *ha, int is_reset)
        if (ha->isp_ops->get_sys_info(ha) == QLA_ERROR)
                goto exit_init_hba;
 
-       if (qla4xxx_init_local_data(ha) == QLA_ERROR)
-               goto exit_init_hba;
+       qla4xxx_init_local_data(ha);
 
        status = qla4xxx_init_firmware(ha);
        if (status == QLA_ERROR)
This page took 0.035187 seconds and 5 git commands to generate.