diff options
author | Yaniv Kaul <ykaul@redhat.com> | 2018-10-21 03:55:04 +0300 |
---|---|---|
committer | Yaniv Kaul <ykaul@redhat.com> | 2018-11-11 16:06:29 +0000 |
commit | cac2dba48bf8029b2b0421850fcc4598e33569f6 (patch) | |
tree | 0ce59ef4a72c4b3f0dea9bff5bec0ccfbd247796 /libglusterfs/src/common-utils.c | |
parent | db28fc7a35b784a4ca6a361961081f93e968cfcb (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 'libglusterfs/src/common-utils.c')
-rw-r--r-- | libglusterfs/src/common-utils.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/libglusterfs/src/common-utils.c b/libglusterfs/src/common-utils.c index bd2cf35a52a..5d66e8d4207 100644 --- a/libglusterfs/src/common-utils.c +++ b/libglusterfs/src/common-utils.c @@ -750,7 +750,6 @@ xldump_subvolumes(xlator_t *this, void *d) int len = 0; char *subvstr = NULL; - subv = this->children; if (!this->children) return; @@ -2116,7 +2115,6 @@ gf_is_ip_in_net(const char *network, const char *ip_str) else if (strchr(network, '.')) family = AF_INET; else { - family = -1; goto out; } @@ -2433,7 +2431,6 @@ valid_ipv4_address(char *address, int length, gf_boolean_t wildcard_acc) goto out; } - prev = tmp; prev = strtok_r(tmp, ".", &ptr); while (prev != NULL) { @@ -4323,7 +4320,6 @@ gf_backtrace_fillframes(char *buf) fp = fdopen(fd, "r"); if (!fp) { sys_close(fd); - ret = -1; goto out; } |