From 555f1cfe7d5d36ee93efbe8c5585eb323d4b7185 Mon Sep 17 00:00:00 2001 From: Pranith Kumar K Date: Tue, 4 Dec 2012 14:38:54 +0530 Subject: libglusterfs: fix unused-but-set-variable warning Change-Id: Ie152169a70eaec9554382b39d43ae7ffa04f041c BUG: 762989 Signed-off-by: Pranith Kumar K Reviewed-on: http://review.gluster.org/4264 Reviewed-by: Raghavendra Bhat Tested-by: Gluster Build System Reviewed-by: Anand Avati --- libglusterfs/src/common-utils.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'libglusterfs') 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); } -- cgit