diff options
author | Attilio Rao <attilio@FreeBSD.org> | 2012-09-13 22:26:22 +0000 |
---|---|---|
committer | Attilio Rao <attilio@FreeBSD.org> | 2012-09-13 22:26:22 +0000 |
commit | 0a15e5d30d967e41e17269931c16d8d074954995 (patch) | |
tree | 98cf642eabc284875d15c5dcbebba86797df11e9 /sys/kern/kern_thread.c | |
parent | 60149b5cce13419bafa045e91925869b79440ea1 (diff) | |
download | src-0a15e5d30d967e41e17269931c16d8d074954995.tar.gz src-0a15e5d30d967e41e17269931c16d8d074954995.zip |
Remove all the checks on curthread != NULL with the exception of some MD
trap checks (eg. printtrap()).
Generally this check is not needed anymore, as there is not a legitimate
case where curthread != NULL, after pcpu 0 area has been properly
initialized.
Reviewed by: bde, jhb
MFC after: 1 week
Notes
Notes:
svn path=/head/; revision=240475
Diffstat (limited to 'sys/kern/kern_thread.c')
-rw-r--r-- | sys/kern/kern_thread.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/sys/kern/kern_thread.c b/sys/kern/kern_thread.c index c4ad7b84a4b5..7c21644df754 100644 --- a/sys/kern/kern_thread.c +++ b/sys/kern/kern_thread.c @@ -622,7 +622,6 @@ thread_single(int mode) p = td->td_proc; mtx_assert(&Giant, MA_NOTOWNED); PROC_LOCK_ASSERT(p, MA_OWNED); - KASSERT((td != NULL), ("curthread is NULL")); if ((p->p_flag & P_HADTHREADS) == 0) return (0); |