ib_srpt: Relax a BUG_ON() statement into WARN_ON()

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@3630 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2011-06-26 14:30:38 +00:00
parent d08012d8cd
commit eff4f33b70

View File

@@ -2019,7 +2019,7 @@ static int srpt_create_ch_ib(struct srpt_rdma_ch *ch)
* (max_sge - 3) entries only.
*/
ch->max_sge = sdev->dev_attr.max_sge - 3;
BUG_ON(ch->max_sge < 1);
WARN_ON(ch->max_sge < 1);
qp_init->cap.max_send_sge = ch->max_sge;
ch->qp = ib_create_qp(sdev->pd, qp_init);