summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBarak Sason Rofman <bsasonro@redhat.com>2020-01-05 12:11:07 +0200
committerMOHIT AGRAWAL <moagrawa@redhat.com>2020-01-07 08:17:51 +0000
commit10b0d19513100c3f7edf00936ea5ec06fc3f80a5 (patch)
treecb7622ba0582c03fa4b3ea210806b13117192596
parent50ca15e14e287f366576f257d715318d2514d7fa (diff)
cli - fixing a coverity issue
Removed unused variable. fixes: CID#1412106 updates: bz#789278 Change-Id: I1d4e1c1625cecf882d51e9cf4f5290383f63d405 Signed-off-by: Barak Sason Rofman <bsasonro@redhat.com>
-rw-r--r--cli/src/cli-rpc-ops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cli/src/cli-rpc-ops.c b/cli/src/cli-rpc-ops.c
index 765112e..12a6d95 100644
--- a/cli/src/cli-rpc-ops.c
+++ b/cli/src/cli-rpc-ops.c
@@ -6153,7 +6153,7 @@ cli_print_volume_status_mempool(dict_t *dict, char *prefix)
if (ret)
goto out;
- keylen = snprintf(key, sizeof(key), "%s.pool%d.pool-misses", prefix, i);
+ snprintf(key, sizeof(key), "%s.pool%d.pool-misses", prefix, i);
ret = dict_get_uint64(dict, key, &pool_misses);
if (ret)
goto out;