diff options
Diffstat (limited to 'drivers/scsi/bfa/bfa_fcs_lport.c')
-rw-r--r-- | drivers/scsi/bfa/bfa_fcs_lport.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/drivers/scsi/bfa/bfa_fcs_lport.c b/drivers/scsi/bfa/bfa_fcs_lport.c index 8975ed041dc0..c7ab257f10a7 100644 --- a/drivers/scsi/bfa/bfa_fcs_lport.c +++ b/drivers/scsi/bfa/bfa_fcs_lport.c | |||
@@ -568,11 +568,10 @@ bfa_fcs_port_offline_actions(struct bfa_fcs_port_s *port) | |||
568 | 568 | ||
569 | __port_action[port->fabric->fab_type].offline(port); | 569 | __port_action[port->fabric->fab_type].offline(port); |
570 | 570 | ||
571 | if (bfa_fcs_fabric_is_online(port->fabric) == BFA_TRUE) { | 571 | if (bfa_fcs_fabric_is_online(port->fabric) == BFA_TRUE) |
572 | bfa_fcs_port_aen_post(port, BFA_LPORT_AEN_DISCONNECT); | 572 | bfa_fcs_port_aen_post(port, BFA_LPORT_AEN_DISCONNECT); |
573 | } else { | 573 | else |
574 | bfa_fcs_port_aen_post(port, BFA_LPORT_AEN_OFFLINE); | 574 | bfa_fcs_port_aen_post(port, BFA_LPORT_AEN_OFFLINE); |
575 | } | ||
576 | bfa_fcb_port_offline(port->fcs->bfad, port->port_cfg.roles, | 575 | bfa_fcb_port_offline(port->fcs->bfad, port->port_cfg.roles, |
577 | port->fabric->vf_drv, | 576 | port->fabric->vf_drv, |
578 | (port->vport == NULL) ? NULL : port->vport->vport_drv); | 577 | (port->vport == NULL) ? NULL : port->vport->vport_drv); |
@@ -777,7 +776,7 @@ bfa_fcs_port_get_rport_by_pwwn(struct bfa_fcs_port_s *port, wwn_t pwwn) | |||
777 | } | 776 | } |
778 | 777 | ||
779 | bfa_trc(port->fcs, pwwn); | 778 | bfa_trc(port->fcs, pwwn); |
780 | return (NULL); | 779 | return NULL; |
781 | } | 780 | } |
782 | 781 | ||
783 | /** | 782 | /** |
@@ -796,7 +795,7 @@ bfa_fcs_port_get_rport_by_nwwn(struct bfa_fcs_port_s *port, wwn_t nwwn) | |||
796 | } | 795 | } |
797 | 796 | ||
798 | bfa_trc(port->fcs, nwwn); | 797 | bfa_trc(port->fcs, nwwn); |
799 | return (NULL); | 798 | return NULL; |
800 | } | 799 | } |
801 | 800 | ||
802 | /** | 801 | /** |
@@ -870,7 +869,7 @@ bfa_fcs_port_lip(struct bfa_fcs_port_s *port) | |||
870 | bfa_boolean_t | 869 | bfa_boolean_t |
871 | bfa_fcs_port_is_online(struct bfa_fcs_port_s *port) | 870 | bfa_fcs_port_is_online(struct bfa_fcs_port_s *port) |
872 | { | 871 | { |
873 | return (bfa_sm_cmp_state(port, bfa_fcs_port_sm_online)); | 872 | return bfa_sm_cmp_state(port, bfa_fcs_port_sm_online); |
874 | } | 873 | } |
875 | 874 | ||
876 | /** | 875 | /** |