diff options
author | Leon Romanovsky <leonro@mellanox.com> | 2018-03-11 13:51:35 +0200 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2018-03-14 15:34:25 -0400 |
commit | 19b1f54099b6ee334acbfbcfbdffd1d1f057216d (patch) | |
tree | 02129124d75ec5d3de55e5f674a4713cc554ff0b /include/rdma | |
parent | fbf1795c969ae81a0c292ca0ee0baa944da4ede3 (diff) | |
download | linux-19b1f54099b6ee334acbfbcfbdffd1d1f057216d.tar.gz linux-19b1f54099b6ee334acbfbcfbdffd1d1f057216d.tar.bz2 linux-19b1f54099b6ee334acbfbcfbdffd1d1f057216d.zip |
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>
Diffstat (limited to 'include/rdma')
-rw-r--r-- | include/rdma/ib_verbs.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/rdma/ib_verbs.h b/include/rdma/ib_verbs.h index 7df3274818f9..5eb10c2470f0 100644 --- a/include/rdma/ib_verbs.h +++ b/include/rdma/ib_verbs.h @@ -2480,9 +2480,9 @@ static inline bool ib_is_udata_cleared(struct ib_udata *udata, * transition from cur_state to next_state is allowed by the IB spec, * and that the attribute mask supplied is allowed for the transition. */ -int ib_modify_qp_is_ok(enum ib_qp_state cur_state, enum ib_qp_state next_state, - enum ib_qp_type type, enum ib_qp_attr_mask mask, - enum rdma_link_layer ll); +bool ib_modify_qp_is_ok(enum ib_qp_state cur_state, enum ib_qp_state next_state, + enum ib_qp_type type, enum ib_qp_attr_mask mask, + enum rdma_link_layer ll); void ib_register_event_handler(struct ib_event_handler *event_handler); void ib_unregister_event_handler(struct ib_event_handler *event_handler); |