summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/bfa/bfa.h
diff options
context:
space:
mode:
authorJing Huang <huangj@brocade.com>2010-12-26 21:46:35 -0800
committerJames Bottomley <James.Bottomley@suse.de>2010-12-31 09:36:53 -0600
commitd4b671c58ebeb56dfc8fe8bcca25e0a06bc9359a (patch)
treef8b5a2cc309ce68dc4399922fe01341d2a332aa0 /drivers/scsi/bfa/bfa.h
parentaa5cbf8a70f57c5360ce1bfef692b357c866ae7f (diff)
downloadlinux-d4b671c58ebeb56dfc8fe8bcca25e0a06bc9359a.tar.gz
linux-d4b671c58ebeb56dfc8fe8bcca25e0a06bc9359a.tar.bz2
linux-d4b671c58ebeb56dfc8fe8bcca25e0a06bc9359a.zip
[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.h4
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),
\
struct list_head *waitq = bfa_reqq(__bfa, __reqq); \
\
- bfa_assert(((__reqq) < BFI_IOC_MAX_CQS)); \
- bfa_assert((__wqe)->qresume && (__wqe)->cbarg); \
+ WARN_ON(((__reqq) >= BFI_IOC_MAX_CQS)); \
+ WARN_ON(!((__wqe)->qresume && (__wqe)->cbarg)); \
\
list_add_tail(&(__wqe)->qe, waitq); \
} while (0)