i40iw: Change accelerated flag to bool
authorHenry Orosco <henry.orosco@intel.com>
Sun, 17 Dec 2017 18:21:39 +0000 (12:21 -0600)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 28 Dec 2017 04:37:26 +0000 (21:37 -0700)
The accelerated flag only utilizes two values: 0 and 1.
Modify accelerated flag in struct i40iw_cm_node to bool.

Signed-off-by: Henry Orosco <henry.orosco@intel.com>
Signed-off-by: Shiraz Saleem <shiraz.saleem@intel.com>
Reviewed-by: Yuval Shaia <yuval.shaia@oracle.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/hw/i40iw/i40iw_cm.c
drivers/infiniband/hw/i40iw/i40iw_cm.h

index 77870f9e173684d91f99a5a0627d0490b14342e9..0d4c2f4302883b3e006133b7fb6c27caaf4901b2 100644 (file)
@@ -3691,7 +3691,7 @@ int i40iw_accept(struct iw_cm_id *cm_id, struct iw_cm_conn_param *conn_param)
        cm_node->qhash_set = false;
        i40iw_modify_qp(&iwqp->ibqp, &attr, IB_QP_STATE, NULL);
 
-       cm_node->accelerated = 1;
+       cm_node->accelerated = true;
        status =
                i40iw_send_cm_event(cm_node, cm_id, IW_CM_EVENT_ESTABLISHED, 0);
        if (status)
@@ -4058,7 +4058,7 @@ static void i40iw_cm_event_connected(struct i40iw_cm_event *event)
        cm_node->qhash_set = false;
        i40iw_modify_qp(&iwqp->ibqp, &attr, IB_QP_STATE, NULL);
 
-       cm_node->accelerated = 1;
+       cm_node->accelerated = true;
        status = i40iw_send_cm_event(cm_node, cm_id, IW_CM_EVENT_CONNECT_REPLY,
                                     0);
        if (status)
index 0d5840d2c4fc6d815e5556bbc646620a6e2a0a02..e09b1f5ecf19977df980a3e1929402ff23c441f3 100644 (file)
@@ -337,7 +337,7 @@ struct i40iw_cm_node {
        u16     mpav2_ird_ord;
        struct iw_cm_id *cm_id;
        struct list_head list;
-       int accelerated;
+       bool accelerated;
        struct i40iw_cm_listener *listener;
        int apbvt_set;
        int accept_pend;