summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src
diff options
context:
space:
mode:
authorPranith Kumar K <pkarampu@redhat.com>2012-12-04 14:38:54 +0530
committerAnand Avati <avati@redhat.com>2012-12-04 01:41:49 -0800
commit555f1cfe7d5d36ee93efbe8c5585eb323d4b7185 (patch)
treee2f6e90b2990a852cce768709f654a3b65ef17c1 /libglusterfs/src
parentc6bb978f93e7e2974b0c8568af09b72bfbc35987 (diff)
libglusterfs: fix unused-but-set-variable warning
Change-Id: Ie152169a70eaec9554382b39d43ae7ffa04f041c BUG: 762989 Signed-off-by: Pranith Kumar K <pkarampu@redhat.com> Reviewed-on: http://review.gluster.org/4264 Reviewed-by: Raghavendra Bhat <raghavendra@redhat.com> Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Anand Avati <avati@redhat.com>
Diffstat (limited to 'libglusterfs/src')
-rw-r--r--libglusterfs/src/common-utils.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/libglusterfs/src/common-utils.c b/libglusterfs/src/common-utils.c
index 7a654314ee5..6e94169de2b 100644
--- a/libglusterfs/src/common-utils.c
+++ b/libglusterfs/src/common-utils.c
@@ -2211,7 +2211,6 @@ gf_process_reserved_ports (gf_boolean_t *ports)
char *ports_info = NULL;
char *tmp = NULL;
char *blocked_port = NULL;
- gf_boolean_t result = _gf_false;
ports_info = gf_get_reserved_ports ();
if (!ports_info) {
@@ -2225,12 +2224,12 @@ gf_process_reserved_ports (gf_boolean_t *ports)
if (!blocked_port || !strcmp (blocked_port, ports_info)) {
if (!blocked_port)
blocked_port = ports_info;
- result = gf_ports_reserved (blocked_port, ports);
+ gf_ports_reserved (blocked_port, ports);
blocked_port = strtok_r (NULL, ",", &tmp);
}
while (blocked_port) {
- result = gf_ports_reserved (blocked_port, ports);
+ gf_ports_reserved (blocked_port, ports);
blocked_port = strtok_r (NULL, ",", &tmp);
}