From cac2dba48bf8029b2b0421850fcc4598e33569f6 Mon Sep 17 00:00:00 2001 From: Yaniv Kaul Date: Sun, 21 Oct 2018 03:55:04 +0300 Subject: libglusterfs multiple files: remove dead initilization Per newer GCC releases and clang-scan, some trivial dead initialization (values that were set but were never read) were removed. Compile-tested only! updates: bz#1193929 Signed-off-by: Yaniv Kaul Change-Id: Ia9959b2ff87d2e9cb46864e68ffe7dccb984db34 --- libglusterfs/src/gfdb/gfdb_data_store.c | 1 - libglusterfs/src/gfdb/gfdb_data_store_helper.c | 1 - 2 files changed, 2 deletions(-) (limited to 'libglusterfs/src/gfdb') diff --git a/libglusterfs/src/gfdb/gfdb_data_store.c b/libglusterfs/src/gfdb/gfdb_data_store.c index 426596c571e..ab56a51d462 100644 --- a/libglusterfs/src/gfdb/gfdb_data_store.c +++ b/libglusterfs/src/gfdb/gfdb_data_store.c @@ -267,7 +267,6 @@ init_db(dict_t *args, gfdb_db_type_t gfdb_db_type) goto init_db_failed; } _conn_node->gfdb_connection.gfdb_db_type = gfdb_db_type; - ret = 0; return _conn_node; diff --git a/libglusterfs/src/gfdb/gfdb_data_store_helper.c b/libglusterfs/src/gfdb/gfdb_data_store_helper.c index fb01a6c699b..b1f79bc8dad 100644 --- a/libglusterfs/src/gfdb/gfdb_data_store_helper.c +++ b/libglusterfs/src/gfdb/gfdb_data_store_helper.c @@ -313,7 +313,6 @@ gfdb_query_record_serialize(gfdb_query_record_t *query_record, char **in_buffer) /* Copying the Footer of the record */ memcpy(buffer, &footer, sizeof(int32_t)); - buffer += sizeof(int32_t); count += sizeof(int32_t); out: -- cgit