From b24b77a4a28c89eaae3402e0c40a38e931052d13 Mon Sep 17 00:00:00 2001 From: Danny Al-Gaaf Date: Sun, 11 May 2014 13:52:37 +0200 Subject: [PATCH] FileStore.cc: remove some dead assignments There is no need to reset 'r' to '0'. Fix for: 3759 r = 0; Value stored to 'r' is never read 4093 r = 0; Value stored to 'r' is never read Signed-off-by: Danny Al-Gaaf --- src/os/FileStore.cc | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/os/FileStore.cc b/src/os/FileStore.cc index 8e58ae78ff519..c0db0b202bb42 100644 --- a/src/os/FileStore.cc +++ b/src/os/FileStore.cc @@ -3756,7 +3756,6 @@ int FileStore::_setattrs(coll_t cid, const ghobject_t& oid, map::iterator p = aset.begin(); p != aset.end(); @@ -4090,7 +4089,6 @@ int FileStore::_collection_remove_recursive(const coll_t &cid, vector objects; ghobject_t max; - r = 0; while (!max.is_max()) { r = collection_list_partial(cid, max, 200, 300, 0, &objects, &max); if (r < 0) -- 2.39.5