aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/qib/qib_ud.c
diff options
context:
space:
mode:
authorLeon Romanovsky <leonro@mellanox.com>2018-11-29 14:15:28 +0200
committerJason Gunthorpe <jgg@mellanox.com>2018-11-29 15:59:40 -0700
commit67810e8c3c01ed80b5118391a8939ff24f08acd3 (patch)
tree8027b6a479a061a4bbbafaf8fc8143c2b3afb6b1 /drivers/infiniband/hw/qib/qib_ud.c
parentIB/usnic: fix spelling mistake "miniumum" -> "minimum" (diff)
downloadlinux-dev-67810e8c3c01ed80b5118391a8939ff24f08acd3.tar.xz
linux-dev-67810e8c3c01ed80b5118391a8939ff24f08acd3.zip
RDMA/qib: Remove all occurrences of BUG_ON()
QIB driver was added in 2010 with many BUG_ON(), most of them were cleaned out after years of development and usages. It looks like that it is safe now to remove rest of BUG_ONs. Signed-off-by: Leon Romanovsky <leonro@mellanox.com> Acked-by: Dennis Dalessandro <dennis.dalessandro@intel.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers/infiniband/hw/qib/qib_ud.c')
-rw-r--r--drivers/infiniband/hw/qib/qib_ud.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/qib/qib_ud.c b/drivers/infiniband/hw/qib/qib_ud.c
index 4d4c31ea4e2d..868da0ece7ba 100644
--- a/drivers/infiniband/hw/qib/qib_ud.c
+++ b/drivers/infiniband/hw/qib/qib_ud.c
@@ -178,7 +178,6 @@ static void qib_ud_loopback(struct rvt_qp *sqp, struct rvt_swqe *swqe)
len = length;
if (len > sge->sge_length)
len = sge->sge_length;
- BUG_ON(len == 0);
rvt_copy_sge(qp, &qp->r_sge, sge->vaddr, len, true, false);
sge->vaddr += len;
sge->length -= len;