summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXavier Hernandez <jahernan@redhat.com>2017-11-02 09:37:44 +0100
committerJeff Darcy <jeff@pl.atyp.us>2017-11-02 17:30:04 +0000
commit917f84b01ff4c485ce548f0daa3d3d51dc81c195 (patch)
tree48c94f430858530280772b323fbcb5cbab7f256a
parent89dc54f50c9f800ca4446ea8fe736e4860588845 (diff)
cli: Fixed coverity issue in cli-cmd-snapshot.c
This patch fixes issue 132 from [1]. [1] https://download.gluster.org/pub/gluster/glusterfs/static-analysis/master/glusterfs-coverity/2017-10-30-9aa574a5/html/ Change-Id: I50952614e7edb6dbb1ec70383f1dc58ce1738c2f BUG: 789278 Signed-off-by: Xavier Hernandez <jahernan@redhat.com>
-rw-r--r--cli/src/cli-cmd-snapshot.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/cli/src/cli-cmd-snapshot.c b/cli/src/cli-cmd-snapshot.c
index 88b4737cd65..06e00c96b7e 100644
--- a/cli/src/cli-cmd-snapshot.c
+++ b/cli/src/cli-cmd-snapshot.c
@@ -35,10 +35,6 @@ cli_cmd_snapshot_cbk (struct cli_state *state, struct cli_cmd_word *word,
cli_local_t *local = NULL;
proc = &cli_rpc_prog->proctable [GLUSTER_CLI_SNAP];
- if (proc == NULL) {
- ret = -1;
- goto out;
- }
frame = create_frame (THIS, THIS->ctx->pool);
if (frame == NULL) {