projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
671a6cc
)
RDMA/mad: Delete inaccessible BUG_ON
author
Leon Romanovsky
<leonro@mellanox.com>
Tue, 29 May 2018 11:56:18 +0000
(14:56 +0300)
committer
Doug Ledford
<dledford@redhat.com>
Fri, 1 Jun 2018 15:16:23 +0000
(11:16 -0400)
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>
drivers/infiniband/core/mad.c
patch
|
blob
|
history
diff --git
a/drivers/infiniband/core/mad.c
b/drivers/infiniband/core/mad.c
index b28452a55a08fc66b72bcc39bb7186286d108915..35295e74de0464fddbac9aaf293163c3495ecd69 100644
(file)
--- 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);