]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
nes: Change accelerated flag to bool
authorShiraz Saleem <shiraz.saleem@intel.com>
Sun, 17 Dec 2017 18:21:38 +0000 (12:21 -0600)
committerJason Gunthorpe <jgg@mellanox.com>
Fri, 22 Dec 2017 20:33:30 +0000 (13:33 -0700)
The accelerated flag only utilizes two values: 0 and 1.
Modify accelerated flag in struct nes_cm_node to bool.

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/nes/nes_cm.c
drivers/infiniband/hw/nes/nes_cm.h

index c56ca2a74df5e29d01e181ec12f446e26816de15..6cdfbf8c5674f55af43b6e22dd50b7065bc28858 100644 (file)
@@ -1365,7 +1365,7 @@ static int mini_cm_del_listen(struct nes_cm_core *cm_core,
 static inline int mini_cm_accelerated(struct nes_cm_core *cm_core,
                                      struct nes_cm_node *cm_node)
 {
-       cm_node->accelerated = 1;
+       cm_node->accelerated = true;
 
        if (cm_node->accept_pend) {
                BUG_ON(!cm_node->listener);
index 2cf2641867d8fed425b98a94937d42e87437dbdf..b9cc02b4e8d59ce3af707c13e4869223f4afc888 100644 (file)
@@ -340,7 +340,7 @@ struct nes_cm_node {
        u16                       mpa_frame_size;
        struct iw_cm_id           *cm_id;
        struct list_head          list;
-       int                       accelerated;
+       bool                      accelerated;
        struct nes_cm_listener    *listener;
        enum nes_cm_conn_type     conn_type;
        struct nes_vnic           *nesvnic;