Skip to content

Commit

Permalink
RDMA/pvrdma: Properly annotate QP states
Browse files Browse the repository at this point in the history
QP states provided by core layer are converted to enum ib_qp_state
and better to use internal variable in that type instead of int.

Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
  • Loading branch information
Leon Romanovsky authored and Doug Ledford committed Mar 14, 2018
1 parent 88de869 commit fbf1795
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/infiniband/hw/vmw_pvrdma/pvrdma_qp.c
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ int pvrdma_modify_qp(struct ib_qp *ibqp, struct ib_qp_attr *attr,
union pvrdma_cmd_req req;
union pvrdma_cmd_resp rsp;
struct pvrdma_cmd_modify_qp *cmd = &req.modify_qp;
int cur_state, next_state;
enum ib_qp_state cur_state, next_state;
int ret;

/* Sanity checking. Should need lock here */
Expand Down

0 comments on commit fbf1795

Please sign in to comment.