summaryrefslogtreecommitdiffstats
path: root/sys/sparc64
diff options
context:
space:
mode:
authorattilio <attilio@FreeBSD.org>2012-09-08 18:27:11 +0000
committerattilio <attilio@FreeBSD.org>2012-09-08 18:27:11 +0000
commit8dece93b14588b73bf5dec69091706dcdccba2fc (patch)
tree52124b3834c9171d7973cf98f0dd6c90bfdfdc9b /sys/sparc64
parentc069e61b00c591709456d152a3b719e87ac7e570 (diff)
downloadFreeBSD-src-8dece93b14588b73bf5dec69091706dcdccba2fc.zip
FreeBSD-src-8dece93b14588b73bf5dec69091706dcdccba2fc.tar.gz
userret() already checks for td_locks when INVARIANTS is enabled, so
there is no need to check if Giant is acquired after it. Reviewed by: kib MFC after: 1 week
Diffstat (limited to 'sys/sparc64')
-rw-r--r--sys/sparc64/sparc64/trap.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/sys/sparc64/sparc64/trap.c b/sys/sparc64/sparc64/trap.c
index 12264b0..b4f0e27 100644
--- a/sys/sparc64/sparc64/trap.c
+++ b/sys/sparc64/sparc64/trap.c
@@ -329,7 +329,6 @@ trap(struct trapframe *tf)
}
userret(td, tf);
- mtx_assert(&Giant, MA_NOTOWNED);
} else {
KASSERT((tf->tf_type & T_KERNEL) != 0,
("trap: kernel trap isn't"));
OpenPOWER on IntegriCloud