IORequest: NULL check does not belong in method body.

Found by Clang's -Wtautological-undefined-compare.
This commit is contained in:
Augustin Cavalier 2017-12-03 13:44:16 -05:00
parent 9c292427ec
commit 8b222e6272

View File

@ -107,9 +107,6 @@ IOBuffer::Create(uint32 count, bool vip)
void
IOBuffer::Delete()
{
if (this == NULL)
return;
free_etc(this, fVIP ? HEAP_PRIORITY_VIP : 0);
}
@ -715,7 +712,8 @@ IORequest::~IORequest()
{
mutex_lock(&fLock);
DeleteSubRequests();
fBuffer->Delete();
if (fBuffer != NULL)
fBuffer->Delete();
mutex_destroy(&fLock);
}