]> asedeno.scripts.mit.edu Git - linux.git/commit
RDMA/verbs: Simplify modify QP check
authorLeon Romanovsky <leonro@mellanox.com>
Sun, 11 Mar 2018 11:51:35 +0000 (13:51 +0200)
committerDoug Ledford <dledford@redhat.com>
Wed, 14 Mar 2018 19:34:25 +0000 (15:34 -0400)
commit19b1f54099b6ee334acbfbcfbdffd1d1f057216d
tree02129124d75ec5d3de55e5f674a4713cc554ff0b
parentfbf1795c969ae81a0c292ca0ee0baa944da4ede3
RDMA/verbs: Simplify modify QP check

All callers to ib_modify_qp_is_ok() provides enum ib_qp_state
makes the checks of out-of-scope redundant. Let's remove them
together with updating function signature to return boolean result.

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
include/rdma/ib_verbs.h