aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/misc/pti.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/drivers/misc/pti.c b/drivers/misc/pti.c
index c8df8e918aa..71aa7835e86 100644
--- a/drivers/misc/pti.c
+++ b/drivers/misc/pti.c
@@ -857,13 +857,6 @@ static void __exit pti_exit(void)
{
int retval;
- /* If some thead is hanging onto the alloclock, force it to release
- * it because we are shutting down.
- */
- if (mutex_is_locked(&alloclock) == 1)
- mutex_unlock(&alloclock);
- mutex_destroy(&alloclock);
-
retval = misc_deregister(&pti_char_driver);
if (retval) {
pr_err("%s(%d): CHAR unregistration failed of pti driver\n",