RDMA/core: Delete BUG() from unreachable flow
authorLeon Romanovsky <leonro@mellanox.com>
Thu, 17 Aug 2017 12:50:38 +0000 (15:50 +0300)
committerDoug Ledford <dledford@redhat.com>
Thu, 24 Aug 2017 20:27:10 +0000 (16:27 -0400)
commitcdc596d89e39521cf412209a19b8baeb8d788cdc
tree21292213c0be108bd31836f0f0a5639d58e393a3
parent78b57f9529225111b440e6e5150f52f5d44e3c60
RDMA/core: Delete BUG() from unreachable flow

Remove call to BUG() in case wrong node_type was provided.
This flow is unreachable, because node_types are supplied
from specific enum.

Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/core/verbs.c