aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/core/mad.c
diff options
context:
space:
mode:
authorLeon Romanovsky <leonro@mellanox.com>2018-05-29 14:56:18 +0300
committerDoug Ledford <dledford@redhat.com>2018-06-01 11:16:23 -0400
commitdee92c4bf53b2701d382ce9e32c57d194a393bfe (patch)
tree74e2d3533b6d3ef60b56f8ac5c938740374818ad /drivers/infiniband/core/mad.c
parentRDMA/cma: Ignore unknown event (diff)
downloadlinux-dev-dee92c4bf53b2701d382ce9e32c57d194a393bfe.tar.xz
linux-dev-dee92c4bf53b2701d382ce9e32c57d194a393bfe.zip
RDMA/mad: Delete inaccessible BUG_ON
There is no need to check existence of mad_queue, because we already did pointer dereference before call to dequeue_mad(). Signed-off-by: Leon Romanovsky <leonro@mellanox.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/core/mad.c')
-rw-r--r--drivers/infiniband/core/mad.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/infiniband/core/mad.c b/drivers/infiniband/core/mad.c
index b28452a55a08..35295e74de04 100644
--- a/drivers/infiniband/core/mad.c
+++ b/drivers/infiniband/core/mad.c
@@ -651,7 +651,6 @@ static void dequeue_mad(struct ib_mad_list_head *mad_list)
struct ib_mad_queue *mad_queue;
unsigned long flags;
- BUG_ON(!mad_list->mad_queue);
mad_queue = mad_list->mad_queue;
spin_lock_irqsave(&mad_queue->lock, flags);
list_del(&mad_list->list);