aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi')
-rw-r--r--drivers/scsi/advansys.c2
-rw-r--r--drivers/scsi/aic7xxx_old/aic7xxx.seq2
-rw-r--r--drivers/scsi/aic94xx/aic94xx_seq.c4
-rw-r--r--drivers/scsi/bfa/bfa_core.c2
-rw-r--r--drivers/scsi/bfa/bfa_fcs.c10
-rw-r--r--drivers/scsi/bfa/bfa_ioim.c2
-rw-r--r--drivers/scsi/bfa/vport.c2
-rw-r--r--drivers/scsi/fcoe/fcoe.c4
-rw-r--r--drivers/scsi/libfc/fc_exch.c4
-rw-r--r--drivers/scsi/libfc/fc_lport.c6
-rw-r--r--drivers/scsi/libfc/fc_rport.c2
-rw-r--r--drivers/scsi/mpt2sas/mpt2sas_base.h2
-rw-r--r--drivers/scsi/mpt2sas/mpt2sas_scsih.c4
-rw-r--r--drivers/scsi/pm8001/pm8001_hwi.c4
-rw-r--r--drivers/scsi/qla2xxx/qla_iocb.c2
-rw-r--r--drivers/scsi/qla2xxx/qla_nx.h2
-rw-r--r--drivers/scsi/qla4xxx/ql4_init.c2
-rw-r--r--drivers/scsi/scsi_transport_fc.c2
18 files changed, 27 insertions, 31 deletions
diff --git a/drivers/scsi/advansys.c b/drivers/scsi/advansys.c
index 7f87979da22..0ec3da6f3e1 100644
--- a/drivers/scsi/advansys.c
+++ b/drivers/scsi/advansys.c
@@ -9717,7 +9717,7 @@ static ushort __devinit AscInitAscDvcVar(ASC_DVC_VAR *asc_dvc)
9717 asc_dvc->bug_fix_cntl = 0; 9717 asc_dvc->bug_fix_cntl = 0;
9718 asc_dvc->pci_fix_asyn_xfer = 0; 9718 asc_dvc->pci_fix_asyn_xfer = 0;
9719 asc_dvc->pci_fix_asyn_xfer_always = 0; 9719 asc_dvc->pci_fix_asyn_xfer_always = 0;
9720 /* asc_dvc->init_state initalized in AscInitGetConfig(). */ 9720 /* asc_dvc->init_state initialized in AscInitGetConfig(). */
9721 asc_dvc->sdtr_done = 0; 9721 asc_dvc->sdtr_done = 0;
9722 asc_dvc->cur_total_qng = 0; 9722 asc_dvc->cur_total_qng = 0;
9723 asc_dvc->is_in_int = 0; 9723 asc_dvc->is_in_int = 0;
diff --git a/drivers/scsi/aic7xxx_old/aic7xxx.seq b/drivers/scsi/aic7xxx_old/aic7xxx.seq
index f6fc4b75b5a..5997e7c3a19 100644
--- a/drivers/scsi/aic7xxx_old/aic7xxx.seq
+++ b/drivers/scsi/aic7xxx_old/aic7xxx.seq
@@ -615,7 +615,7 @@ ultra2_dmafifoflush:
615 * went empty and the next bit of data is copied from 615 * went empty and the next bit of data is copied from
616 * the SCSI fifo into the PCI fifo. It should only 616 * the SCSI fifo into the PCI fifo. It should only
617 * come on when both FIFOs (meaning the entire FIFO 617 * come on when both FIFOs (meaning the entire FIFO
618 * chain) are emtpy. Since it can take up to 4 cycles 618 * chain) are empty. Since it can take up to 4 cycles
619 * for new data to be copied from the SCSI fifo into 619 * for new data to be copied from the SCSI fifo into
620 * the PCI fifo, testing for FIFOEMP status for 4 620 * the PCI fifo, testing for FIFOEMP status for 4
621 * extra times gives the needed time for any 621 * extra times gives the needed time for any
diff --git a/drivers/scsi/aic94xx/aic94xx_seq.c b/drivers/scsi/aic94xx/aic94xx_seq.c
index d01dcc62b39..74374618010 100644
--- a/drivers/scsi/aic94xx/aic94xx_seq.c
+++ b/drivers/scsi/aic94xx/aic94xx_seq.c
@@ -588,7 +588,7 @@ static void asd_init_cseq_mdp(struct asd_ha_struct *asd_ha)
588 * asd_init_cseq_scratch -- setup and init CSEQ 588 * asd_init_cseq_scratch -- setup and init CSEQ
589 * @asd_ha: pointer to host adapter structure 589 * @asd_ha: pointer to host adapter structure
590 * 590 *
591 * Setup and initialize Central sequencers. Initialiaze the mode 591 * Setup and initialize Central sequencers. Initialize the mode
592 * independent and dependent scratch page to the default settings. 592 * independent and dependent scratch page to the default settings.
593 */ 593 */
594static void asd_init_cseq_scratch(struct asd_ha_struct *asd_ha) 594static void asd_init_cseq_scratch(struct asd_ha_struct *asd_ha)
@@ -782,7 +782,7 @@ static void asd_init_lseq_mdp(struct asd_ha_struct *asd_ha, int lseq)
782 asd_write_reg_word(asd_ha, LmSEQ_OOB_INT_ENABLES(lseq), 0); 782 asd_write_reg_word(asd_ha, LmSEQ_OOB_INT_ENABLES(lseq), 0);
783 /* 783 /*
784 * Set the desired interval between transmissions of the NOTIFY 784 * Set the desired interval between transmissions of the NOTIFY
785 * (ENABLE SPINUP) primitive. Must be initilized to val - 1. 785 * (ENABLE SPINUP) primitive. Must be initialized to val - 1.
786 */ 786 */
787 asd_write_reg_word(asd_ha, LmSEQ_NOTIFY_TIMER_TIMEOUT(lseq), 787 asd_write_reg_word(asd_ha, LmSEQ_NOTIFY_TIMER_TIMEOUT(lseq),
788 ASD_NOTIFY_TIMEOUT - 1); 788 ASD_NOTIFY_TIMEOUT - 1);
diff --git a/drivers/scsi/bfa/bfa_core.c b/drivers/scsi/bfa/bfa_core.c
index bef70924d5c..76fa5c5b40d 100644
--- a/drivers/scsi/bfa/bfa_core.c
+++ b/drivers/scsi/bfa/bfa_core.c
@@ -336,7 +336,7 @@ bfa_get_pciids(struct bfa_pciid_s **pciids, int *npciids)
336 {BFA_PCI_VENDOR_ID_BROCADE, BFA_PCI_DEVICE_ID_CT_FC}, 336 {BFA_PCI_VENDOR_ID_BROCADE, BFA_PCI_DEVICE_ID_CT_FC},
337 }; 337 };
338 338
339 *npciids = sizeof(__pciids) / sizeof(__pciids[0]); 339 *npciids = ARRAY_SIZE(__pciids);
340 *pciids = __pciids; 340 *pciids = __pciids;
341} 341}
342 342
diff --git a/drivers/scsi/bfa/bfa_fcs.c b/drivers/scsi/bfa/bfa_fcs.c
index 3ec2f49de61..d1a99209bf5 100644
--- a/drivers/scsi/bfa/bfa_fcs.c
+++ b/drivers/scsi/bfa/bfa_fcs.c
@@ -86,7 +86,7 @@ bfa_fcs_attach(struct bfa_fcs_s *fcs, struct bfa_s *bfa, struct bfad_s *bfad,
86 bfa_attach_fcs(bfa); 86 bfa_attach_fcs(bfa);
87 fcbuild_init(); 87 fcbuild_init();
88 88
89 for (i = 0; i < sizeof(fcs_modules) / sizeof(fcs_modules[0]); i++) { 89 for (i = 0; i < ARRAY_SIZE(fcs_modules); i++) {
90 mod = &fcs_modules[i]; 90 mod = &fcs_modules[i];
91 if (mod->attach) 91 if (mod->attach)
92 mod->attach(fcs); 92 mod->attach(fcs);
@@ -103,7 +103,7 @@ bfa_fcs_init(struct bfa_fcs_s *fcs)
103 struct bfa_fcs_mod_s *mod; 103 struct bfa_fcs_mod_s *mod;
104 struct bfi_pbc_vport_s pbc_vports[BFI_PBC_MAX_VPORTS]; 104 struct bfi_pbc_vport_s pbc_vports[BFI_PBC_MAX_VPORTS];
105 105
106 for (i = 0; i < sizeof(fcs_modules) / sizeof(fcs_modules[0]); i++) { 106 for (i = 0; i < ARRAY_SIZE(fcs_modules); i++) {
107 mod = &fcs_modules[i]; 107 mod = &fcs_modules[i];
108 if (mod->modinit) 108 if (mod->modinit)
109 mod->modinit(fcs); 109 mod->modinit(fcs);
@@ -171,13 +171,11 @@ void
171bfa_fcs_exit(struct bfa_fcs_s *fcs) 171bfa_fcs_exit(struct bfa_fcs_s *fcs)
172{ 172{
173 struct bfa_fcs_mod_s *mod; 173 struct bfa_fcs_mod_s *mod;
174 int nmods, i; 174 int i;
175 175
176 bfa_wc_init(&fcs->wc, bfa_fcs_exit_comp, fcs); 176 bfa_wc_init(&fcs->wc, bfa_fcs_exit_comp, fcs);
177 177
178 nmods = sizeof(fcs_modules) / sizeof(fcs_modules[0]); 178 for (i = 0; i < ARRAY_SIZE(fcs_modules); i++) {
179
180 for (i = 0; i < nmods; i++) {
181 179
182 mod = &fcs_modules[i]; 180 mod = &fcs_modules[i];
183 if (mod->modexit) { 181 if (mod->modexit) {
diff --git a/drivers/scsi/bfa/bfa_ioim.c b/drivers/scsi/bfa/bfa_ioim.c
index 4148ae09f99..bdfdc19915f 100644
--- a/drivers/scsi/bfa/bfa_ioim.c
+++ b/drivers/scsi/bfa/bfa_ioim.c
@@ -520,7 +520,7 @@ bfa_ioim_sm_cleanup_qfull(struct bfa_ioim_s *ioim, enum bfa_ioim_event event)
520 520
521 case BFA_IOIM_SM_ABORT: 521 case BFA_IOIM_SM_ABORT:
522 /** 522 /**
523 * IO is alraedy being cleaned up implicitly 523 * IO is already being cleaned up implicitly
524 */ 524 */
525 ioim->io_cbfn = __bfa_cb_ioim_abort; 525 ioim->io_cbfn = __bfa_cb_ioim_abort;
526 break; 526 break;
diff --git a/drivers/scsi/bfa/vport.c b/drivers/scsi/bfa/vport.c
index 66f30a0d61e..b378ec79d38 100644
--- a/drivers/scsi/bfa/vport.c
+++ b/drivers/scsi/bfa/vport.c
@@ -835,7 +835,7 @@ bfa_cb_lps_fdisc_comp(void *bfad, void *uarg, bfa_status_t status)
835 switch (status) { 835 switch (status) {
836 case BFA_STATUS_OK: 836 case BFA_STATUS_OK:
837 /* 837 /*
838 * Initialiaze the V-Port fields 838 * Initialize the V-Port fields
839 */ 839 */
840 __vport_fcid(vport) = bfa_lps_get_pid(vport->lps); 840 __vport_fcid(vport) = bfa_lps_get_pid(vport->lps);
841 vport->vport_stats.fdisc_accepts++; 841 vport->vport_stats.fdisc_accepts++;
diff --git a/drivers/scsi/fcoe/fcoe.c b/drivers/scsi/fcoe/fcoe.c
index e79605a6115..844d618b84b 100644
--- a/drivers/scsi/fcoe/fcoe.c
+++ b/drivers/scsi/fcoe/fcoe.c
@@ -2499,7 +2499,7 @@ module_exit(fcoe_exit);
2499 * @fp: response frame, or error encoded in a pointer (timeout) 2499 * @fp: response frame, or error encoded in a pointer (timeout)
2500 * @arg: pointer the the fcoe_ctlr structure 2500 * @arg: pointer the the fcoe_ctlr structure
2501 * 2501 *
2502 * This handles MAC address managment for FCoE, then passes control on to 2502 * This handles MAC address management for FCoE, then passes control on to
2503 * the libfc FLOGI response handler. 2503 * the libfc FLOGI response handler.
2504 */ 2504 */
2505static void fcoe_flogi_resp(struct fc_seq *seq, struct fc_frame *fp, void *arg) 2505static void fcoe_flogi_resp(struct fc_seq *seq, struct fc_frame *fp, void *arg)
@@ -2531,7 +2531,7 @@ done:
2531 * @fp: response frame, or error encoded in a pointer (timeout) 2531 * @fp: response frame, or error encoded in a pointer (timeout)
2532 * @arg: pointer the the fcoe_ctlr structure 2532 * @arg: pointer the the fcoe_ctlr structure
2533 * 2533 *
2534 * This handles MAC address managment for FCoE, then passes control on to 2534 * This handles MAC address management for FCoE, then passes control on to
2535 * the libfc LOGO response handler. 2535 * the libfc LOGO response handler.
2536 */ 2536 */
2537static void fcoe_logo_resp(struct fc_seq *seq, struct fc_frame *fp, void *arg) 2537static void fcoe_logo_resp(struct fc_seq *seq, struct fc_frame *fp, void *arg)
diff --git a/drivers/scsi/libfc/fc_exch.c b/drivers/scsi/libfc/fc_exch.c
index b8560ad8cf6..ec2a1aec235 100644
--- a/drivers/scsi/libfc/fc_exch.c
+++ b/drivers/scsi/libfc/fc_exch.c
@@ -219,8 +219,6 @@ static void fc_exch_els_rrq(struct fc_frame *);
219 */ 219 */
220static char *fc_exch_rctl_names[] = FC_RCTL_NAMES_INIT; 220static char *fc_exch_rctl_names[] = FC_RCTL_NAMES_INIT;
221 221
222#define FC_TABLE_SIZE(x) (sizeof(x) / sizeof(x[0]))
223
224/** 222/**
225 * fc_exch_name_lookup() - Lookup name by opcode 223 * fc_exch_name_lookup() - Lookup name by opcode
226 * @op: Opcode to be looked up 224 * @op: Opcode to be looked up
@@ -249,7 +247,7 @@ static inline const char *fc_exch_name_lookup(unsigned int op, char **table,
249static const char *fc_exch_rctl_name(unsigned int op) 247static const char *fc_exch_rctl_name(unsigned int op)
250{ 248{
251 return fc_exch_name_lookup(op, fc_exch_rctl_names, 249 return fc_exch_name_lookup(op, fc_exch_rctl_names,
252 FC_TABLE_SIZE(fc_exch_rctl_names)); 250 ARRAY_SIZE(fc_exch_rctl_names));
253} 251}
254 252
255/** 253/**
diff --git a/drivers/scsi/libfc/fc_lport.c b/drivers/scsi/libfc/fc_lport.c
index 6eb334a8a7f..d9b6e11b0e8 100644
--- a/drivers/scsi/libfc/fc_lport.c
+++ b/drivers/scsi/libfc/fc_lport.c
@@ -32,11 +32,11 @@
32 * invalid SID. We also need to ensure that states don't change unexpectedly 32 * invalid SID. We also need to ensure that states don't change unexpectedly
33 * while processing another state. 33 * while processing another state.
34 * 34 *
35 * HEIRARCHY 35 * HIERARCHY
36 * 36 *
37 * The following heirarchy defines the locking rules. A greater lock 37 * The following hierarchy defines the locking rules. A greater lock
38 * may be held before acquiring a lesser lock, but a lesser lock should never 38 * may be held before acquiring a lesser lock, but a lesser lock should never
39 * be held while attempting to acquire a greater lock. Here is the heirarchy- 39 * be held while attempting to acquire a greater lock. Here is the hierarchy-
40 * 40 *
41 * lport > disc, lport > rport, disc > rport 41 * lport > disc, lport > rport, disc > rport
42 * 42 *
diff --git a/drivers/scsi/libfc/fc_rport.c b/drivers/scsi/libfc/fc_rport.c
index 25479cc7f17..b9f2286fe0c 100644
--- a/drivers/scsi/libfc/fc_rport.c
+++ b/drivers/scsi/libfc/fc_rport.c
@@ -34,7 +34,7 @@
34 * The rport should never hold the rport mutex and then attempt to acquire 34 * The rport should never hold the rport mutex and then attempt to acquire
35 * either the lport or disc mutexes. The rport's mutex is considered lesser 35 * either the lport or disc mutexes. The rport's mutex is considered lesser
36 * than both the lport's mutex and the disc mutex. Refer to fc_lport.c for 36 * than both the lport's mutex and the disc mutex. Refer to fc_lport.c for
37 * more comments on the heirarchy. 37 * more comments on the hierarchy.
38 * 38 *
39 * The locking strategy is similar to the lport's strategy. The lock protects 39 * The locking strategy is similar to the lport's strategy. The lock protects
40 * the rport's states and is held and released by the entry points to the rport 40 * the rport's states and is held and released by the entry points to the rport
diff --git a/drivers/scsi/mpt2sas/mpt2sas_base.h b/drivers/scsi/mpt2sas/mpt2sas_base.h
index 0ebef0c0d94..0b15a8bdebf 100644
--- a/drivers/scsi/mpt2sas/mpt2sas_base.h
+++ b/drivers/scsi/mpt2sas/mpt2sas_base.h
@@ -475,7 +475,7 @@ typedef void (*MPT_ADD_SGE)(void *paddr, u32 flags_length, dma_addr_t dma_addr);
475 * @shost_recovery: host reset in progress 475 * @shost_recovery: host reset in progress
476 * @ioc_reset_in_progress_lock: 476 * @ioc_reset_in_progress_lock:
477 * @ioc_link_reset_in_progress: phy/hard reset in progress 477 * @ioc_link_reset_in_progress: phy/hard reset in progress
478 * @ignore_loginfos: ignore loginfos during task managment 478 * @ignore_loginfos: ignore loginfos during task management
479 * @remove_host: flag for when driver unloads, to avoid sending dev resets 479 * @remove_host: flag for when driver unloads, to avoid sending dev resets
480 * @pci_error_recovery: flag to prevent ioc access until slot reset completes 480 * @pci_error_recovery: flag to prevent ioc access until slot reset completes
481 * @wait_for_port_enable_to_complete: 481 * @wait_for_port_enable_to_complete:
diff --git a/drivers/scsi/mpt2sas/mpt2sas_scsih.c b/drivers/scsi/mpt2sas/mpt2sas_scsih.c
index 6273abd0535..16e99b68635 100644
--- a/drivers/scsi/mpt2sas/mpt2sas_scsih.c
+++ b/drivers/scsi/mpt2sas/mpt2sas_scsih.c
@@ -3349,7 +3349,7 @@ _scsih_qcmd(struct scsi_cmnd *scmd, void (*done)(struct scsi_cmnd *))
3349 /* host recovery or link resets sent via IOCTLs */ 3349 /* host recovery or link resets sent via IOCTLs */
3350 if (ioc->shost_recovery || ioc->ioc_link_reset_in_progress) 3350 if (ioc->shost_recovery || ioc->ioc_link_reset_in_progress)
3351 return SCSI_MLQUEUE_HOST_BUSY; 3351 return SCSI_MLQUEUE_HOST_BUSY;
3352 /* device busy with task managment */ 3352 /* device busy with task management */
3353 else if (sas_device_priv_data->block || sas_target_priv_data->tm_busy) 3353 else if (sas_device_priv_data->block || sas_target_priv_data->tm_busy)
3354 return SCSI_MLQUEUE_DEVICE_BUSY; 3354 return SCSI_MLQUEUE_DEVICE_BUSY;
3355 /* device has been deleted */ 3355 /* device has been deleted */
@@ -7226,7 +7226,7 @@ _scsih_init(void)
7226 /* queuecommand callback hander */ 7226 /* queuecommand callback hander */
7227 scsi_io_cb_idx = mpt2sas_base_register_callback_handler(_scsih_io_done); 7227 scsi_io_cb_idx = mpt2sas_base_register_callback_handler(_scsih_io_done);
7228 7228
7229 /* task managment callback handler */ 7229 /* task management callback handler */
7230 tm_cb_idx = mpt2sas_base_register_callback_handler(_scsih_tm_done); 7230 tm_cb_idx = mpt2sas_base_register_callback_handler(_scsih_tm_done);
7231 7231
7232 /* base internal commands callback handler */ 7232 /* base internal commands callback handler */
diff --git a/drivers/scsi/pm8001/pm8001_hwi.c b/drivers/scsi/pm8001/pm8001_hwi.c
index 356ad268de6..58d1134935e 100644
--- a/drivers/scsi/pm8001/pm8001_hwi.c
+++ b/drivers/scsi/pm8001/pm8001_hwi.c
@@ -1082,7 +1082,7 @@ static void pm8001_hw_chip_rst(struct pm8001_hba_info *pm8001_ha)
1082} 1082}
1083 1083
1084/** 1084/**
1085 * pm8001_chip_iounmap - which maped when initilized. 1085 * pm8001_chip_iounmap - which maped when initialized.
1086 * @pm8001_ha: our hba card information 1086 * @pm8001_ha: our hba card information
1087 */ 1087 */
1088static void pm8001_chip_iounmap(struct pm8001_hba_info *pm8001_ha) 1088static void pm8001_chip_iounmap(struct pm8001_hba_info *pm8001_ha)
@@ -4152,7 +4152,7 @@ static int pm8001_chip_abort_task(struct pm8001_hba_info *pm8001_ha,
4152} 4152}
4153 4153
4154/** 4154/**
4155 * pm8001_chip_ssp_tm_req - built the task managment command. 4155 * pm8001_chip_ssp_tm_req - built the task management command.
4156 * @pm8001_ha: our hba card information. 4156 * @pm8001_ha: our hba card information.
4157 * @ccb: the ccb information. 4157 * @ccb: the ccb information.
4158 * @tmf: task management function. 4158 * @tmf: task management function.
diff --git a/drivers/scsi/qla2xxx/qla_iocb.c b/drivers/scsi/qla2xxx/qla_iocb.c
index 4e4c21fafe3..579f0285466 100644
--- a/drivers/scsi/qla2xxx/qla_iocb.c
+++ b/drivers/scsi/qla2xxx/qla_iocb.c
@@ -1068,7 +1068,7 @@ qla24xx_build_scsi_crc_2_iocbs(srb_t *sp, struct cmd_type_crc_2 *cmd_pkt,
1068 cmd_pkt->fcp_cmnd_dseg_address[1] = cpu_to_le32( 1068 cmd_pkt->fcp_cmnd_dseg_address[1] = cpu_to_le32(
1069 MSD(crc_ctx_dma + CRC_CONTEXT_FCPCMND_OFF)); 1069 MSD(crc_ctx_dma + CRC_CONTEXT_FCPCMND_OFF));
1070 fcp_cmnd->task_attribute = 0; 1070 fcp_cmnd->task_attribute = 0;
1071 fcp_cmnd->task_managment = 0; 1071 fcp_cmnd->task_management = 0;
1072 1072
1073 cmd_pkt->fcp_rsp_dseg_len = 0; /* Let response come in status iocb */ 1073 cmd_pkt->fcp_rsp_dseg_len = 0; /* Let response come in status iocb */
1074 1074
diff --git a/drivers/scsi/qla2xxx/qla_nx.h b/drivers/scsi/qla2xxx/qla_nx.h
index 569232b4550..15559cab39f 100644
--- a/drivers/scsi/qla2xxx/qla_nx.h
+++ b/drivers/scsi/qla2xxx/qla_nx.h
@@ -865,7 +865,7 @@ struct fcp_cmnd {
865 struct scsi_lun lun; 865 struct scsi_lun lun;
866 uint8_t crn; 866 uint8_t crn;
867 uint8_t task_attribute; 867 uint8_t task_attribute;
868 uint8_t task_managment; 868 uint8_t task_management;
869 uint8_t additional_cdb_len; 869 uint8_t additional_cdb_len;
870 uint8_t cdb[260]; /* 256 for CDB len and 4 for FCP_DL */ 870 uint8_t cdb[260]; /* 256 for CDB len and 4 for FCP_DL */
871}; 871};
diff --git a/drivers/scsi/qla4xxx/ql4_init.c b/drivers/scsi/qla4xxx/ql4_init.c
index 266ebd45396..30073577c3a 100644
--- a/drivers/scsi/qla4xxx/ql4_init.c
+++ b/drivers/scsi/qla4xxx/ql4_init.c
@@ -214,7 +214,7 @@ exit_get_sys_info_no_free:
214 **/ 214 **/
215static int qla4xxx_init_local_data(struct scsi_qla_host *ha) 215static int qla4xxx_init_local_data(struct scsi_qla_host *ha)
216{ 216{
217 /* Initilize aen queue */ 217 /* Initialize aen queue */
218 ha->aen_q_count = MAX_AEN_ENTRIES; 218 ha->aen_q_count = MAX_AEN_ENTRIES;
219 219
220 return qla4xxx_get_firmware_status(ha); 220 return qla4xxx_get_firmware_status(ha);
diff --git a/drivers/scsi/scsi_transport_fc.c b/drivers/scsi/scsi_transport_fc.c
index 06813789145..edb6b362a8f 100644
--- a/drivers/scsi/scsi_transport_fc.c
+++ b/drivers/scsi/scsi_transport_fc.c
@@ -965,7 +965,7 @@ static FC_DEVICE_ATTR(rport, fast_io_fail_tmo, S_IRUGO | S_IWUSR,
965 965
966/* 966/*
967 * Note: in the target show function we recognize when the remote 967 * Note: in the target show function we recognize when the remote
968 * port is in the heirarchy and do not allow the driver to get 968 * port is in the hierarchy and do not allow the driver to get
969 * involved in sysfs functions. The driver only gets involved if 969 * involved in sysfs functions. The driver only gets involved if
970 * it's the "old" style that doesn't use rports. 970 * it's the "old" style that doesn't use rports.
971 */ 971 */