diff options
author | Parav Pandit <parav@mellanox.com> | 2018-07-29 11:53:13 +0300 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2018-07-30 20:49:04 -0600 |
commit | ca3a8ace2b128abb7f164de9e10b8431eaddc2ac (patch) | |
tree | ab907d3693b194f4d7a67ac4eea3b088cd06a4f4 /include/rdma | |
parent | 05e0b86c413dc09454229f070eb6d2016340f602 (diff) | |
download | linux-stable-ca3a8ace2b128abb7f164de9e10b8431eaddc2ac.tar.gz linux-stable-ca3a8ace2b128abb7f164de9e10b8431eaddc2ac.tar.bz2 linux-stable-ca3a8ace2b128abb7f164de9e10b8431eaddc2ac.zip |
RDMA/core: Return bool instead of int
Return bool for following internal and inline functions as their
underlying APIs return bool too.
1. cma_zero_addr()
2. cma_loopback_addr()
3. cma_any_addr()
4. ib_addr_any()
5. ib_addr_loopback()
While we are touching cma_loopback_addr(), remove extra white spaces
in it.
Signed-off-by: Parav Pandit <parav@mellanox.com>
Reviewed-by: Daniel Jurgens <danielj@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'include/rdma')
-rw-r--r-- | include/rdma/ib.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/rdma/ib.h b/include/rdma/ib.h index 66dbed0c146d..4f385ec54f80 100644 --- a/include/rdma/ib.h +++ b/include/rdma/ib.h @@ -53,12 +53,12 @@ struct ib_addr { #define sib_interface_id ib_u.uib_addr64[1] }; -static inline int ib_addr_any(const struct ib_addr *a) +static inline bool ib_addr_any(const struct ib_addr *a) { return ((a->sib_addr64[0] | a->sib_addr64[1]) == 0); } -static inline int ib_addr_loopback(const struct ib_addr *a) +static inline bool ib_addr_loopback(const struct ib_addr *a) { return ((a->sib_addr32[0] | a->sib_addr32[1] | a->sib_addr32[2] | (a->sib_addr32[3] ^ htonl(1))) == 0); |