Remove useless debugging code, the area is completely filled but it's not

checked afterwards, only pi_magic is.
This commit is contained in:
maxv 2018-12-23 11:42:13 +00:00
parent 6326f9f26c
commit d176722e97

View File

@ -1,4 +1,4 @@
/* $NetBSD: subr_pool.c,v 1.229 2018/12/16 21:03:35 maxv Exp $ */
/* $NetBSD: subr_pool.c,v 1.230 2018/12/23 11:42:13 maxv Exp $ */
/*
* Copyright (c) 1997, 1999, 2000, 2002, 2007, 2008, 2010, 2014, 2015, 2018
@ -33,7 +33,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: subr_pool.c,v 1.229 2018/12/16 21:03:35 maxv Exp $");
__KERNEL_RCSID(0, "$NetBSD: subr_pool.c,v 1.230 2018/12/23 11:42:13 maxv Exp $");
#ifdef _KERNEL_OPT
#include "opt_ddb.h"
@ -993,15 +993,7 @@ pool_do_put(struct pool *pp, void *v, struct pool_pagelist *pq)
#ifdef POOL_CHECK_MAGIC
pi->pi_magic = PI_MAGIC;
#endif
#ifdef DEBUG
{
int i, *ip = v;
for (i = 0; i < pp->pr_size / sizeof(int); i++) {
*ip++ = PI_MAGIC;
}
}
#endif
if (pp->pr_redzone) {
/*
* Mark the pool_item as valid. The rest is already