diff options
author | Honggang LI <honli@redhat.com> | 2015-04-29 17:40:44 +0800 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2015-05-05 13:21:27 -0400 |
commit | 471e70583217728955436a3fa6e5201e5c8c296a (patch) | |
tree | fe2a133825320af519f4b16e219fba29995f4ef0 /include/rdma | |
parent | d4988623cc605131bed8c77f007082c3555c39ee (diff) | |
download | talos-op-linux-471e70583217728955436a3fa6e5201e5c8c296a.tar.gz talos-op-linux-471e70583217728955436a3fa6e5201e5c8c296a.zip |
IB/core: change rdma_gid2ip into void function as it always return zero
Signed-off-by: Honggang Li <honli@redhat.com>
Acked-by: Sean Hefty <sean.hefty@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'include/rdma')
-rw-r--r-- | include/rdma/ib_addr.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/rdma/ib_addr.h b/include/rdma/ib_addr.h index ce55906b54a0..ac54c27a2bfd 100644 --- a/include/rdma/ib_addr.h +++ b/include/rdma/ib_addr.h @@ -160,7 +160,7 @@ static inline int rdma_ip2gid(struct sockaddr *addr, union ib_gid *gid) } /* Important - sockaddr should be a union of sockaddr_in and sockaddr_in6 */ -static inline int rdma_gid2ip(struct sockaddr *out, union ib_gid *gid) +static inline void rdma_gid2ip(struct sockaddr *out, union ib_gid *gid) { if (ipv6_addr_v4mapped((struct in6_addr *)gid)) { struct sockaddr_in *out_in = (struct sockaddr_in *)out; @@ -173,7 +173,6 @@ static inline int rdma_gid2ip(struct sockaddr *out, union ib_gid *gid) out_in->sin6_family = AF_INET6; memcpy(&out_in->sin6_addr.s6_addr, gid->raw, 16); } - return 0; } static inline void iboe_addr_get_sgid(struct rdma_dev_addr *dev_addr, |