[SCSI] bfa: fix formating and checkpatch issues

Fixed code indentation and alignment issues.
Fixed all checkpatch warnings.

Signed-off-by: Jing Huang <huangj@brocade.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
This commit is contained in:
Jing Huang 2011-11-16 12:28:49 -08:00 committed by James Bottomley
parent 2b132577a0
commit 275a63acda
2 changed files with 221 additions and 219 deletions

View File

@ -65,11 +65,11 @@ struct bfa_iocfc_drvcfg_s {
u16 ioc_recover; /* IOC recovery mode */
u16 min_cfg; /* minimum configuration */
u16 path_tov; /* device path timeout */
u16 num_tio_reqs; /*!< number of TM IO reqs */
u16 num_tio_reqs; /* number of TM IO reqs */
u8 port_mode;
u8 rsvd_a;
bfa_boolean_t delay_comp; /* delay completion of
failed inflight IOs */
bfa_boolean_t delay_comp; /* delay completion of failed
* inflight IOs */
u16 num_ttsk_reqs; /* TM task management requests */
u32 rsvd;
};
@ -151,8 +151,7 @@ struct bfa_fw_ioim_stats_s {
u32 ioh_unexp_frame_event; /* unexpected frame received
* count */
u32 ioh_err_int; /* IOH error int during data-phase
* for scsi write
*/
* for scsi write */
};
struct bfa_fw_tio_stats_s {
@ -164,7 +163,7 @@ struct bfa_fw_tio_stats_s {
u32 tio_abort_rsp_comp; /* TIO abort rsp completed */
u32 tio_abts_req; /* TIO ABTS requested */
u32 tio_abts_ack; /* TIO ABTS ack-ed */
u32 tio_abts_ack_nocomp; /* TIO ABTS ack-ed but not completed */
u32 tio_abts_ack_nocomp;/* TIO ABTS ack-ed but not completed */
u32 tio_abts_tmo; /* TIO ABTS timeout */
u32 tio_snsdata_dma; /* TIO sense data DMA */
u32 tio_rxwchan_wait; /* TIO waiting for RX wait channel */
@ -172,13 +171,15 @@ struct bfa_fw_tio_stats_s {
u32 tio_hit_bls; /* TIO IOH BLS event */
u32 tio_uf_recv; /* TIO received UF */
u32 tio_rd_invalid_sm; /* TIO read reqst in wrong state machine */
u32 tio_wr_invalid_sm;/* TIO write reqst in wrong state machine */
u32 tio_wr_invalid_sm; /* TIO write reqst in wrong state machine */
u32 ds_rxwchan_wait; /* DS waiting for RX wait channel */
u32 ds_rxwchan_avail; /* DS RX wait channel available */
u32 ds_unaligned_rd; /* DS unaligned read */
u32 ds_rdcomp_invalid_sm; /* DS read completed in wrong state machine */
u32 ds_wrcomp_invalid_sm; /* DS write completed in wrong state machine */
u32 ds_rdcomp_invalid_sm; /* DS read completed in wrong state
* machine */
u32 ds_wrcomp_invalid_sm; /* DS write completed in wrong state
* machine */
u32 ds_flush_req; /* DS flush requested */
u32 ds_flush_comp; /* DS flush completed */
u32 ds_xfrdy_exp; /* DS XFER_RDY expired */
@ -191,7 +192,7 @@ struct bfa_fw_tio_stats_s {
u32 ds_hit_class2; /* DS hit class2 */
u32 ds_length_err; /* DS length error */
u32 ds_ro_ooo_err; /* DS relative offset out-of-order error */
u32 ds_rectov_timer_exp; /* DS rectov expired */
u32 ds_rectov_timer_exp;/* DS rectov expired */
u32 ds_unexp_fr_err; /* DS unexp frame error */
};
@ -565,7 +566,7 @@ struct bfa_fcoe_stats_s {
u64 disc_unsol; /* Discovery unsolicited */
u64 disc_timeouts; /* Discovery timeouts */
u64 disc_fcf_unavail; /* Discovery FCF not avail */
u64 linksvc_unsupp; /* FIP link service req unsupp. */
u64 linksvc_unsupp; /* FIP link service req unsupp */
u64 linksvc_err; /* FIP link service req errors */
u64 logo_req; /* FIP logos received */
u64 clrvlink_req; /* Clear virtual link requests */
@ -872,7 +873,8 @@ struct bfa_port_attr_s {
wwn_t pwwn; /* port wwn */
wwn_t factorynwwn; /* factory node wwn */
wwn_t factorypwwn; /* factory port wwn */
enum fc_cos cos_supported; /* supported class of services */
enum fc_cos cos_supported; /* supported class of
* services */
u32 rsvd;
struct fc_symname_s port_symname; /* port symbolic name */
enum bfa_port_speed speed_supported; /* supported speeds */
@ -891,7 +893,8 @@ struct bfa_port_attr_s {
enum bfa_port_topology topology; /* current topology */
bfa_boolean_t beacon; /* current beacon status */
bfa_boolean_t link_e2e_beacon; /* link beacon is on */
bfa_boolean_t bbsc_op_status; /* fc credit recovery oper state */
bfa_boolean_t bbsc_op_status; /* fc credit recovery oper
* state */
/*
* Dynamic field - info from FCS

View File

@ -557,8 +557,7 @@ bfad_debugfs_exit(struct bfad_port_s *port)
}
}
/*
* Remove the pci_dev debugfs directory for the port */
/* Remove the pci_dev debugfs directory for the port */
if (port->port_debugfs_root) {
debugfs_remove(port->port_debugfs_root);
port->port_debugfs_root = NULL;