Removed a redundant null pointer check.

This commit is contained in:
Takatoshi Kondo 2014-02-03 11:07:26 +09:00
parent 723d900098
commit 2be892bfda

View File

@ -233,10 +233,6 @@ inline void* zone::allocate_expand(size_t size)
if (!c) return nullptr;
char* ptr = reinterpret_cast<char*>(c) + sizeof(chunk);
if (!ptr) {
::free(c);
return nullptr;
}
c->next_ = cl->head_;
cl->head_ = c;