diff options
author | Jing Huang <huangj@brocade.com> | 2010-12-27 00:46:35 -0500 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2010-12-31 10:36:53 -0500 |
commit | d4b671c58ebeb56dfc8fe8bcca25e0a06bc9359a (patch) | |
tree | f8b5a2cc309ce68dc4399922fe01341d2a332aa0 /drivers/scsi/bfa/bfa_fcs_rport.c | |
parent | aa5cbf8a70f57c5360ce1bfef692b357c866ae7f (diff) |
[SCSI] bfa: replace bfa_assert with WARN_ON
Signed-off-by: Jing Huang <huangj@brocade.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/bfa/bfa_fcs_rport.c')
-rw-r--r-- | drivers/scsi/bfa/bfa_fcs_rport.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/bfa/bfa_fcs_rport.c b/drivers/scsi/bfa/bfa_fcs_rport.c index 711f2d992a97..caaee6f06937 100644 --- a/drivers/scsi/bfa/bfa_fcs_rport.c +++ b/drivers/scsi/bfa/bfa_fcs_rport.c | |||
@@ -1968,7 +1968,7 @@ bfa_fcs_rport_alloc(struct bfa_fcs_lport_s *port, wwn_t pwwn, u32 rpid) | |||
1968 | /* | 1968 | /* |
1969 | * allocate FC-4s | 1969 | * allocate FC-4s |
1970 | */ | 1970 | */ |
1971 | bfa_assert(bfa_fcs_lport_is_initiator(port)); | 1971 | WARN_ON(!bfa_fcs_lport_is_initiator(port)); |
1972 | 1972 | ||
1973 | if (bfa_fcs_lport_is_initiator(port)) { | 1973 | if (bfa_fcs_lport_is_initiator(port)) { |
1974 | rport->itnim = bfa_fcs_itnim_create(rport); | 1974 | rport->itnim = bfa_fcs_itnim_create(rport); |
@@ -2897,7 +2897,7 @@ bfa_fcs_rpf_rpsc2_response(void *fcsarg, struct bfa_fcxp_s *fcxp, void *cbarg, | |||
2897 | num_ents = be16_to_cpu(rpsc2_acc->num_pids); | 2897 | num_ents = be16_to_cpu(rpsc2_acc->num_pids); |
2898 | bfa_trc(rport->fcs, num_ents); | 2898 | bfa_trc(rport->fcs, num_ents); |
2899 | if (num_ents > 0) { | 2899 | if (num_ents > 0) { |
2900 | bfa_assert(rpsc2_acc->port_info[0].pid != rport->pid); | 2900 | WARN_ON(rpsc2_acc->port_info[0].pid == rport->pid); |
2901 | bfa_trc(rport->fcs, | 2901 | bfa_trc(rport->fcs, |
2902 | be16_to_cpu(rpsc2_acc->port_info[0].pid)); | 2902 | be16_to_cpu(rpsc2_acc->port_info[0].pid)); |
2903 | bfa_trc(rport->fcs, | 2903 | bfa_trc(rport->fcs, |