From 3bfca80256401db81b3106ea163beb303d80d230 Mon Sep 17 00:00:00 2001 From: liuchang0812 Date: Thu, 22 Dec 2016 16:17:55 +0800 Subject: [PATCH] os/bluestore: remove a never read value Signed-off-by: liuchang0812 --- src/os/bluestore/BlueStore.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/os/bluestore/BlueStore.cc b/src/os/bluestore/BlueStore.cc index f96eb7bd25f0e..e05f2d856c191 100644 --- a/src/os/bluestore/BlueStore.cc +++ b/src/os/bluestore/BlueStore.cc @@ -4519,9 +4519,8 @@ int BlueStore::fsck(bool deep) if (it) { for (it->lower_bound(string()); it->valid(); it->next()) { string key = it->key(); - const char *p = key.c_str(); uint64_t omap_head; - p = _key_decode_u64(p, &omap_head); + _key_decode_u64(key.c_str(), &omap_head); if (used_omap_head.count(omap_head) == 0) { derr << __func__ << " found stray omap data on omap_head " << omap_head << dendl; -- 2.47.3