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.h | |
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.h')
-rw-r--r-- | drivers/scsi/bfa/bfa.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/bfa/bfa.h b/drivers/scsi/bfa/bfa.h index cabc6b92b25d..56a227b023ae 100644 --- a/drivers/scsi/bfa/bfa.h +++ b/drivers/scsi/bfa/bfa.h | |||
@@ -120,8 +120,8 @@ bfa_reqq_winit(struct bfa_reqq_wait_s *wqe, void (*qresume) (void *cbarg), | |||
120 | \ | 120 | \ |
121 | struct list_head *waitq = bfa_reqq(__bfa, __reqq); \ | 121 | struct list_head *waitq = bfa_reqq(__bfa, __reqq); \ |
122 | \ | 122 | \ |
123 | bfa_assert(((__reqq) < BFI_IOC_MAX_CQS)); \ | 123 | WARN_ON(((__reqq) >= BFI_IOC_MAX_CQS)); \ |
124 | bfa_assert((__wqe)->qresume && (__wqe)->cbarg); \ | 124 | WARN_ON(!((__wqe)->qresume && (__wqe)->cbarg)); \ |
125 | \ | 125 | \ |
126 | list_add_tail(&(__wqe)->qe, waitq); \ | 126 | list_add_tail(&(__wqe)->qe, waitq); \ |
127 | } while (0) | 127 | } while (0) |