From 10b0d19513100c3f7edf00936ea5ec06fc3f80a5 Mon Sep 17 00:00:00 2001 From: Barak Sason Rofman Date: Sun, 5 Jan 2020 12:11:07 +0200 Subject: cli - fixing a coverity issue Removed unused variable. fixes: CID#1412106 updates: bz#789278 Change-Id: I1d4e1c1625cecf882d51e9cf4f5290383f63d405 Signed-off-by: Barak Sason Rofman --- cli/src/cli-rpc-ops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cli/src/cli-rpc-ops.c b/cli/src/cli-rpc-ops.c index 765112eca0d..12a6d95292c 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; -- cgit