summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryatipadia <ypadia@redhat.com>2019-09-13 13:52:38 +0530
committerAtin Mukherjee <amukherj@redhat.com>2019-10-15 04:07:56 +0000
commitb55667cfd78c0d940a54a02bc8f47509ad43904b (patch)
treed89be5f2b83def148fa21399f37a6f3b1341ecd8
parent2f43a1a4b567ec02ec03847b6eaec5ac59e68808 (diff)
glusterfsd: fix unused value coverity issues
This patch addresses CID-1398624 and CID-1398631 removed the unused variable brick_name Change-Id: I4f40bd76cb4c94b28589c2333e29d4623da339d0 Updates: bz#789278 Signed-off-by: yati <ypadia@redhat.com>
-rw-r--r--glusterfsd/src/glusterfsd-mgmt.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/glusterfsd/src/glusterfsd-mgmt.c b/glusterfsd/src/glusterfsd-mgmt.c
index 7eb8b4b..a6b1a15 100644
--- a/glusterfsd/src/glusterfsd-mgmt.c
+++ b/glusterfsd/src/glusterfsd-mgmt.c
@@ -3133,9 +3133,6 @@ glusterfs_mgmt_pmap_signin(glusterfs_ctx_t *ctx)
int ret = -1;
int emancipate_ret = -1;
cmd_args_t *cmd_args = NULL;
- char brick_name[PATH_MAX] = {
- 0,
- };
cmd_args = &ctx->cmd_args;
@@ -3146,14 +3143,6 @@ glusterfs_mgmt_pmap_signin(glusterfs_ctx_t *ctx)
goto out;
}
- if (cmd_args->volfile_server_transport &&
- !strcmp(cmd_args->volfile_server_transport, "rdma")) {
- snprintf(brick_name, sizeof(brick_name), "%s.rdma",
- cmd_args->brick_name);
- req.brick = brick_name;
- } else
- req.brick = cmd_args->brick_name;
-
req.port = cmd_args->brick_port;
req.pid = (int)getpid(); /* only glusterd2 consumes this */