From: Jianpeng Ma Date: Tue, 7 Nov 2017 14:42:59 +0000 (+0800) Subject: os/filestore: remove redudant check. X-Git-Tag: v13.0.1~161^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F18777%2Fhead;p=ceph.git os/filestore: remove redudant check. If next is null, we already set a non-null to it. So don't check again. Signed-off-by: Jianpeng Ma --- diff --git a/src/os/filestore/FileStore.cc b/src/os/filestore/FileStore.cc index 35e99d66763..cd453973839 100644 --- a/src/os/filestore/FileStore.cc +++ b/src/os/filestore/FileStore.cc @@ -5024,7 +5024,7 @@ int FileStore::collection_list(const coll_t& c, dout(20) << "objects: " << *ls << dendl; // HashIndex doesn't know the pool when constructing a 'next' value - if (next && !next->is_max()) { + if (!next->is_max()) { next->hobj.pool = pool; next->set_shard(shard); dout(20) << " next " << *next << dendl;