Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Remove a call to panic() which duplicates the subse...
details: https://anonhg.NetBSD.org/src/rev/fe027731ca75
branches: trunk
changeset: 346490:fe027731ca75
user: pgoyette <pgoyette%NetBSD.org@localhost>
date: Thu Jul 14 21:57:06 2016 +0000
description:
Remove a call to panic() which duplicates the subsequent KASSERT()!
XXX Since everything has (or should have) been switched to dev_t, we
XXX could probably remove the check for
XXX
XXX ca->ca_devsize >= sizeof(struct device)
XXX
XXX But someone ought to check on that first!
Reviewed by riastradh@
diffstat:
sys/kern/subr_autoconf.c | 9 ++-------
1 files changed, 2 insertions(+), 7 deletions(-)
diffs (30 lines):
diff -r 77ef376dda30 -r fe027731ca75 sys/kern/subr_autoconf.c
--- a/sys/kern/subr_autoconf.c Thu Jul 14 20:38:20 2016 +0000
+++ b/sys/kern/subr_autoconf.c Thu Jul 14 21:57:06 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: subr_autoconf.c,v 1.243 2016/07/11 07:42:13 msaitoh Exp $ */
+/* $NetBSD: subr_autoconf.c,v 1.244 2016/07/14 21:57:06 pgoyette Exp $ */
/*
* Copyright (c) 1996, 2000 Christopher G. Demetriou
@@ -77,7 +77,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: subr_autoconf.c,v 1.243 2016/07/11 07:42:13 msaitoh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_autoconf.c,v 1.244 2016/07/14 21:57:06 pgoyette Exp $");
#ifdef _KERNEL_OPT
#include "opt_ddb.h"
@@ -1369,11 +1369,6 @@
if (ca == NULL)
return NULL;
- if ((ca->ca_flags & DVF_PRIV_ALLOC) == 0 &&
- ca->ca_devsize < sizeof(struct device))
- panic("config_devalloc: %s (%zu < %zu)", cf->cf_atname,
- ca->ca_devsize, sizeof(struct device));
-
/* get memory for all device vars */
KASSERT((ca->ca_flags & DVF_PRIV_ALLOC)
|| ca->ca_devsize >= sizeof(struct device));
Home |
Main Index |
Thread Index |
Old Index