Commit 094cf730 authored by Marko Mäkelä's avatar Marko Mäkelä

Avoid some dead code

parent b600f307
......@@ -264,11 +264,8 @@ static void ut_allocate_trace_dontdump(void * ptr,
static void ut_dodump(void* ptr, size_t m_size)
{
if (ptr == NULL) {
return;
}
#if defined(DBUG_OFF) && defined(HAVE_MADVISE) && defined(MADV_DODUMP)
if (madvise(ptr, m_size, MADV_DODUMP)) {
if (ptr && madvise(ptr, m_size, MADV_DODUMP)) {
ib::warn() << "Failed to set memory to DODUMP: "
<< strerror(errno)
<< " ptr " << ptr
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment