summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_prot.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/kern/kern_prot.c')
-rw-r--r--sys/kern/kern_prot.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/sys/kern/kern_prot.c b/sys/kern/kern_prot.c
index 20273ce..a3e4bea 100644
--- a/sys/kern/kern_prot.c
+++ b/sys/kern/kern_prot.c
@@ -1767,19 +1767,6 @@ crdup(struct ucred *cr)
return (newcr);
}
-#ifdef DIAGNOSTIC
-void
-cred_free_thread(struct thread *td)
-{
- struct ucred *cred;
-
- cred = td->td_ucred;
- td->td_ucred = NULL;
- if (cred != NULL)
- crfree(cred);
-}
-#endif
-
/*
* Fill in a struct xucred based on a struct ucred.
*/
OpenPOWER on IntegriCloud