Remove #if 0'd check for 0-size allocations, which if enabled, called

kdb_enter().
This commit is contained in:
rwatson 2007-05-27 13:13:46 +00:00
parent d162983163
commit 048e4018c8

View File

@ -321,10 +321,6 @@ malloc(unsigned long size, struct malloc_type *mtp, int flags)
}
}
#endif
#if 0
if (size == 0)
kdb_enter("zero size malloc");
#endif
#ifdef MALLOC_MAKE_FAILURES
if ((flags & M_NOWAIT) && (malloc_failure_rate != 0)) {
atomic_add_int(&malloc_nowait_count, 1);