From 2355012f3843859d639819d2308f995e08e270e5 Mon Sep 17 00:00:00 2001 From: Manikandan Selvaganesh Date: Mon, 9 Feb 2015 12:56:17 +0530 Subject: cli : logically dead code removed CID : 1124396 1124398 Change-Id: I708703529bbfe78c295523d2f4b85a55566a6249 BUG: 789278 Signed-off-by: Manikandan Selvaganesh Reviewed-on: http://review.gluster.org/9606 Tested-by: Gluster Build System Reviewed-by: Kaleb KEITHLEY Reviewed-by: Vijay Bellur --- cli/src/cli-cmd-volume.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'cli/src/cli-cmd-volume.c') diff --git a/cli/src/cli-cmd-volume.c b/cli/src/cli-cmd-volume.c index c6b0673bca7..8c9cdf43fe3 100644 --- a/cli/src/cli-cmd-volume.c +++ b/cli/src/cli-cmd-volume.c @@ -1555,10 +1555,6 @@ cli_cmd_quota_cbk (struct cli_state *state, struct cli_cmd_word *word, CLI_LOCAL_INIT (local, words, frame, options); proc = &cli_rpc_prog->proctable[GLUSTER_CLI_QUOTA]; - if (proc == NULL) { - ret = -1; - goto out; - } if (proc->fn) ret = proc->fn (frame, THIS, options); @@ -1889,10 +1885,6 @@ cli_cmd_volume_gsync_set_cbk (struct cli_state *state, struct cli_cmd_word *word cli_local_t *local = NULL; proc = &cli_rpc_prog->proctable [GLUSTER_CLI_GSYNC_SET]; - if (proc == NULL) { - ret = -1; - goto out; - } frame = create_frame (THIS, THIS->ctx->pool); if (frame == NULL) { -- cgit