diff options
author | Leon Romanovsky <leonro@mellanox.com> | 2018-05-29 14:56:18 +0300 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2018-06-01 11:16:23 -0400 |
commit | dee92c4bf53b2701d382ce9e32c57d194a393bfe (patch) | |
tree | 74e2d3533b6d3ef60b56f8ac5c938740374818ad /drivers/infiniband | |
parent | 671a6cc2ba05aa97ee5afe3479f1bdba2436970d (diff) | |
download | op-kernel-dev-dee92c4bf53b2701d382ce9e32c57d194a393bfe.zip op-kernel-dev-dee92c4bf53b2701d382ce9e32c57d194a393bfe.tar.gz |
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')
-rw-r--r-- | drivers/infiniband/core/mad.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/infiniband/core/mad.c b/drivers/infiniband/core/mad.c index b28452a..35295e7 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); |