Commit dee92c4b authored by Leon Romanovsky's avatar Leon Romanovsky Committed by Doug Ledford

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: default avatarLeon Romanovsky <leonro@mellanox.com>
Signed-off-by: default avatarDoug Ledford <dledford@redhat.com>
parent 671a6cc2
...@@ -651,7 +651,6 @@ static void dequeue_mad(struct ib_mad_list_head *mad_list) ...@@ -651,7 +651,6 @@ static void dequeue_mad(struct ib_mad_list_head *mad_list)
struct ib_mad_queue *mad_queue; struct ib_mad_queue *mad_queue;
unsigned long flags; unsigned long flags;
BUG_ON(!mad_list->mad_queue);
mad_queue = mad_list->mad_queue; mad_queue = mad_list->mad_queue;
spin_lock_irqsave(&mad_queue->lock, flags); spin_lock_irqsave(&mad_queue->lock, flags);
list_del(&mad_list->list); list_del(&mad_list->list);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment