summaryrefslogtreecommitdiffstats
path: root/sys/kern/vfs_subr.c
diff options
context:
space:
mode:
authorattilio <attilio@FreeBSD.org>2012-09-13 22:26:22 +0000
committerattilio <attilio@FreeBSD.org>2012-09-13 22:26:22 +0000
commitd63ec4c4ce1de03b00bdd4813aeee11ee77907ea (patch)
tree98cf642eabc284875d15c5dcbebba86797df11e9 /sys/kern/vfs_subr.c
parent5bb226a48fff4750ea9116c30966dec033b67f4c (diff)
downloadFreeBSD-src-d63ec4c4ce1de03b00bdd4813aeee11ee77907ea.zip
FreeBSD-src-d63ec4c4ce1de03b00bdd4813aeee11ee77907ea.tar.gz
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
Diffstat (limited to 'sys/kern/vfs_subr.c')
-rw-r--r--sys/kern/vfs_subr.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c
index 06d16c0..5c781c2 100644
--- a/sys/kern/vfs_subr.c
+++ b/sys/kern/vfs_subr.c
@@ -3416,7 +3416,6 @@ vfs_unmountall(void)
struct thread *td;
int error;
- KASSERT(curthread != NULL, ("vfs_unmountall: NULL curthread"));
CTR1(KTR_VFS, "%s: unmounting all filesystems", __func__);
td = curthread;
OpenPOWER on IntegriCloud