diff options
Diffstat (limited to 'drivers/scsi/bfa/vport.c')
-rw-r--r-- | drivers/scsi/bfa/vport.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/drivers/scsi/bfa/vport.c b/drivers/scsi/bfa/vport.c index c10af06c5714..e90f1e38c32d 100644 --- a/drivers/scsi/bfa/vport.c +++ b/drivers/scsi/bfa/vport.c | |||
@@ -31,13 +31,13 @@ | |||
31 | 31 | ||
32 | BFA_TRC_FILE(FCS, VPORT); | 32 | BFA_TRC_FILE(FCS, VPORT); |
33 | 33 | ||
34 | #define __vport_fcs(__vp) (__vp)->lport.fcs | 34 | #define __vport_fcs(__vp) ((__vp)->lport.fcs) |
35 | #define __vport_pwwn(__vp) (__vp)->lport.port_cfg.pwwn | 35 | #define __vport_pwwn(__vp) ((__vp)->lport.port_cfg.pwwn) |
36 | #define __vport_nwwn(__vp) (__vp)->lport.port_cfg.nwwn | 36 | #define __vport_nwwn(__vp) ((__vp)->lport.port_cfg.nwwn) |
37 | #define __vport_bfa(__vp) (__vp)->lport.fcs->bfa | 37 | #define __vport_bfa(__vp) ((__vp)->lport.fcs->bfa) |
38 | #define __vport_fcid(__vp) (__vp)->lport.pid | 38 | #define __vport_fcid(__vp) ((__vp)->lport.pid) |
39 | #define __vport_fabric(__vp) (__vp)->lport.fabric | 39 | #define __vport_fabric(__vp) ((__vp)->lport.fabric) |
40 | #define __vport_vfid(__vp) (__vp)->lport.fabric->vf_id | 40 | #define __vport_vfid(__vp) ((__vp)->lport.fabric->vf_id) |
41 | 41 | ||
42 | #define BFA_FCS_VPORT_MAX_RETRIES 5 | 42 | #define BFA_FCS_VPORT_MAX_RETRIES 5 |
43 | /* | 43 | /* |
@@ -641,9 +641,9 @@ bfa_fcs_vport_get_max(struct bfa_fcs_s *fcs) | |||
641 | bfa_get_attr(fcs->bfa, &ioc_attr); | 641 | bfa_get_attr(fcs->bfa, &ioc_attr); |
642 | 642 | ||
643 | if (ioc_attr.pci_attr.device_id == BFA_PCI_DEVICE_ID_CT) | 643 | if (ioc_attr.pci_attr.device_id == BFA_PCI_DEVICE_ID_CT) |
644 | return (BFA_FCS_MAX_VPORTS_SUPP_CT); | 644 | return BFA_FCS_MAX_VPORTS_SUPP_CT; |
645 | else | 645 | else |
646 | return (BFA_FCS_MAX_VPORTS_SUPP_CB); | 646 | return BFA_FCS_MAX_VPORTS_SUPP_CB; |
647 | } | 647 | } |
648 | 648 | ||
649 | 649 | ||
@@ -675,7 +675,7 @@ bfa_fcs_vport_create(struct bfa_fcs_vport_s *vport, struct bfa_fcs_s *fcs, | |||
675 | struct bfad_vport_s *vport_drv) | 675 | struct bfad_vport_s *vport_drv) |
676 | { | 676 | { |
677 | if (vport_cfg->pwwn == 0) | 677 | if (vport_cfg->pwwn == 0) |
678 | return (BFA_STATUS_INVALID_WWN); | 678 | return BFA_STATUS_INVALID_WWN; |
679 | 679 | ||
680 | if (bfa_fcs_port_get_pwwn(&fcs->fabric.bport) == vport_cfg->pwwn) | 680 | if (bfa_fcs_port_get_pwwn(&fcs->fabric.bport) == vport_cfg->pwwn) |
681 | return BFA_STATUS_VPORT_WWN_BP; | 681 | return BFA_STATUS_VPORT_WWN_BP; |