summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAtin Mukherjee <amukherj@redhat.com>2014-04-03 15:10:58 +0530
committerVijay Bellur <vbellur@redhat.com>2014-04-04 06:36:08 -0700
commitd5072db4c56c2351437aa4c2d340bf2766e318ce (patch)
tree414fc9444598cc6944fb86265134d4711d9fad5d
parent49fbc578ef96b7952d4d77993fb8a7212ae486dd (diff)
cli : Removal of dead code
dead code reported by covscan is removed from cli-cmd-parser.c Fix for coverity CID: 1195423 Change-Id: Ice1771dc8b3ef47fd2e63b380b12e850dc1d5d95 BUG: 789278 Signed-off-by: Atin Mukherjee <amukherj@redhat.com> Reviewed-on: http://review.gluster.org/7389 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Krishnan Parthasarathi <kparthas@redhat.com>
-rw-r--r--cli/src/cli-cmd-parser.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/cli/src/cli-cmd-parser.c b/cli/src/cli-cmd-parser.c
index 9777e65..afa1611 100644
--- a/cli/src/cli-cmd-parser.c
+++ b/cli/src/cli-cmd-parser.c
@@ -1184,11 +1184,6 @@ cli_cmd_volume_remove_brick_parse (const char **words, int wordcount,
}
}
- if (wordcount < 4) {
- ret = -1;
- goto out;
- }
-
ret = dict_set_int32 (dict, "command", command);
if (ret)
gf_log ("cli", GF_LOG_INFO, "failed to set 'command' %d",