mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 06:09:23 -04:00
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>
This commit is contained in:
parent
671a6cc2ba
commit
dee92c4bf5
1 changed files with 0 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue