Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 275a63ac authored by Jing Huang's avatar Jing Huang Committed by James Bottomley
Browse files

[SCSI] bfa: fix formating and checkpatch issues



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

Signed-off-by: default avatarJing Huang <huangj@brocade.com>
Signed-off-by: default avatarJames Bottomley <JBottomley@Parallels.com>
parent 2b132577
Loading
Loading
Loading
Loading
+220 −217
Original line number Diff line number Diff line
@@ -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 {
@@ -177,8 +176,10 @@ struct bfa_fw_tio_stats_s {
	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 */
@@ -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
+1 −2
Original line number Diff line number Diff line
@@ -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;