summaryrefslogtreecommitdiffstats
path: root/cryptodev_main.c
diff options
context:
space:
mode:
authorMiloslav Trmač <mitr@redhat.com>2010-08-04 04:14:53 +0200
committerMiloslav Trmač <mitr@redhat.com>2010-08-04 04:14:53 +0200
commit85b4cdcb94355e284c1fff81311b5a039861a01d (patch)
tree64827fb6e611d4ea7b9103d5f56a691eed0fc278 /cryptodev_main.c
parent9c515c4dfac9de37f1ce5aaefcdaadc5fba82c51 (diff)
downloadkernel-crypto-85b4cdcb94355e284c1fff81311b5a039861a01d.tar.gz
kernel-crypto-85b4cdcb94355e284c1fff81311b5a039861a01d.tar.xz
kernel-crypto-85b4cdcb94355e284c1fff81311b5a039861a01d.zip
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.
Diffstat (limited to 'cryptodev_main.c')
-rw-r--r--cryptodev_main.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/cryptodev_main.c b/cryptodev_main.c
index 19dc6773df3..3223acd1e72 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 ====== */