From cac2dba48bf8029b2b0421850fcc4598e33569f6 Mon Sep 17 00:00:00 2001 From: Yaniv Kaul Date: Sun, 21 Oct 2018 03:55:04 +0300 Subject: 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 Change-Id: Ia9959b2ff87d2e9cb46864e68ffe7dccb984db34 --- libglusterfs/src/common-utils.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'libglusterfs/src/common-utils.c') 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; } -- cgit