summaryrefslogtreecommitdiffstats
path: root/rpc
diff options
context:
space:
mode:
authorYaniv Kaul <ykaul@redhat.com>2018-10-21 03:55:04 +0300
committerYaniv Kaul <ykaul@redhat.com>2018-11-11 16:06:29 +0000
commitcac2dba48bf8029b2b0421850fcc4598e33569f6 (patch)
tree0ce59ef4a72c4b3f0dea9bff5bec0ccfbd247796 /rpc
parentdb28fc7a35b784a4ca6a361961081f93e968cfcb (diff)
libglusterfs multiple files: remove dead initilization
Per newer GCC releases and clang-scan, some trivial dead initialization (values that were set but were never read) were removed. Compile-tested only! updates: bz#1193929 Signed-off-by: Yaniv Kaul <ykaul@redhat.com> Change-Id: Ia9959b2ff87d2e9cb46864e68ffe7dccb984db34
Diffstat (limited to 'rpc')
-rw-r--r--rpc/rpc-transport/rdma/src/name.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/rpc/rpc-transport/rdma/src/name.c b/rpc/rpc-transport/rdma/src/name.c
index e7d56fcc1a8..d57f2d4f58d 100644
--- a/rpc/rpc-transport/rdma/src/name.c
+++ b/rpc/rpc-transport/rdma/src/name.c
@@ -598,22 +598,16 @@ fill_inet6_inet_identifiers(rpc_transport_t *this,
int32_t one_to_four, four_to_eight, twelve_to_sixteen;
int16_t eight_to_ten, ten_to_twelve;
- one_to_four = four_to_eight = twelve_to_sixteen = 0;
- eight_to_ten = ten_to_twelve = 0;
-
one_to_four = sock_union.sin6.sin6_addr.s6_addr32[0];
four_to_eight = sock_union.sin6.sin6_addr.s6_addr32[1];
#ifdef GF_SOLARIS_HOST_OS
eight_to_ten = S6_ADDR16(sock_union.sin6.sin6_addr)[4];
-#else
- eight_to_ten = sock_union.sin6.sin6_addr.s6_addr16[4];
-#endif
-
-#ifdef GF_SOLARIS_HOST_OS
ten_to_twelve = S6_ADDR16(sock_union.sin6.sin6_addr)[5];
#else
+ eight_to_ten = sock_union.sin6.sin6_addr.s6_addr16[4];
ten_to_twelve = sock_union.sin6.sin6_addr.s6_addr16[5];
#endif
+
twelve_to_sixteen = sock_union.sin6.sin6_addr.s6_addr32[3];
/* ipv4 mapped ipv6 address has