Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Remove useless debugging code, the area is complete...
details: https://anonhg.NetBSD.org/src/rev/305f1fc10d71
branches: trunk
changeset: 446858:305f1fc10d71
user: maxv <maxv%NetBSD.org@localhost>
date: Sun Dec 23 11:42:13 2018 +0000
description:
Remove useless debugging code, the area is completely filled but it's not
checked afterwards, only pi_magic is.
diffstat:
sys/kern/subr_pool.c | 14 +++-----------
1 files changed, 3 insertions(+), 11 deletions(-)
diffs (35 lines):
diff -r df3c52093e7d -r 305f1fc10d71 sys/kern/subr_pool.c
--- a/sys/kern/subr_pool.c Sun Dec 23 01:29:23 2018 +0000
+++ b/sys/kern/subr_pool.c Sun Dec 23 11:42:13 2018 +0000
@@ -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 @@
#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
Home |
Main Index |
Thread Index |
Old Index