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
parent 64667735f4
commit c2d182f59a

View File

@ -96,7 +96,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);