From 85b4cdcb94355e284c1fff81311b5a039861a01d Mon Sep 17 00:00:00 2001 From: Miloslav Trmač Date: Wed, 4 Aug 2010 04:14:53 +0200 Subject: Drop the key generation work queue Originally motivated by debugobject.c reports about using INIT_WORK instead of INIT_WORK_ON_STACK and destroy_work_on_stack. In fact the work queue is completely unnecessary, and this commit removes it. --- cryptodev_main.c | 9 --------- 1 file changed, 9 deletions(-) (limited to 'cryptodev_main.c') diff --git a/cryptodev_main.c b/cryptodev_main.c index 19dc677..3223acd 100644 --- a/cryptodev_main.c +++ b/cryptodev_main.c @@ -975,17 +975,9 @@ cryptodev_register(void) ncr_limits_init(); ncr_master_key_reset(); - rc = ncr_pk_queue_init(); - if (unlikely(rc)) { - ncr_limits_deinit(); - printk(KERN_ERR PFX "initialization of PK workqueue failed\n"); - return rc; - } - rc = misc_register (&cryptodev); if (unlikely(rc)) { ncr_limits_deinit(); - ncr_pk_queue_deinit(); printk(KERN_ERR PFX "registration of /dev/crypto failed\n"); return rc; } @@ -998,7 +990,6 @@ cryptodev_deregister(void) { misc_deregister(&cryptodev); ncr_limits_deinit(); - ncr_pk_queue_deinit(); } /* ====== Module init/exit ====== */ -- cgit