Remove test that is not needed.

We know that buf is not null at this point.

Spotted by coverity.
This commit is contained in:
Jean-Marc Lasgouttes 2017-07-06 14:14:43 +02:00 committed by Juergen Spitzmueller
parent f61e88b7dd
commit 311a40747e

View File

@ -98,7 +98,7 @@ void BufferList::release(Buffer * buf)
BufferStorage::iterator const it =
find(bstore.begin(), bstore.end(), buf);
if (it != bstore.end()) {
Buffer const * parent = buf ? buf->parent() : 0;
Buffer const * parent = buf->parent();
Buffer * tmp = (*it);
bstore.erase(it);
LASSERT(tmp, return);