diff options
author | Gary R Hook <gary.hook@amd.com> | 2016-10-18 18:33:37 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2016-10-24 23:08:23 -0400 |
commit | 103600ab966a2f02d8986bbfdf87b762b1c6a06d (patch) | |
tree | 35cca53e7805aaf34f5d4432cd53ea2def92f811 /drivers/crypto/ccp/ccp-dev-v3.c | |
parent | ec9b70df75b3600ca20338198a43173f23e6bb9b (diff) |
crypto: ccp - Clean up the LSB slot allocation code
Fix a few problems revealed by testing: verify consistent
units, especially in public slot allocation. Percolate
some common initialization code up to a common routine.
Add some comments.
Signed-off-by: Gary R Hook <gary.hook@amd.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/ccp/ccp-dev-v3.c')
-rw-r--r-- | drivers/crypto/ccp/ccp-dev-v3.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/crypto/ccp/ccp-dev-v3.c b/drivers/crypto/ccp/ccp-dev-v3.c index 8d2dbacc6161..7bc09989e18a 100644 --- a/drivers/crypto/ccp/ccp-dev-v3.c +++ b/drivers/crypto/ccp/ccp-dev-v3.c | |||
@@ -404,10 +404,6 @@ static int ccp_init(struct ccp_device *ccp) | |||
404 | goto e_pool; | 404 | goto e_pool; |
405 | } | 405 | } |
406 | 406 | ||
407 | /* Initialize the queues used to wait for KSB space and suspend */ | ||
408 | init_waitqueue_head(&ccp->sb_queue); | ||
409 | init_waitqueue_head(&ccp->suspend_queue); | ||
410 | |||
411 | dev_dbg(dev, "Starting threads...\n"); | 407 | dev_dbg(dev, "Starting threads...\n"); |
412 | /* Create a kthread for each queue */ | 408 | /* Create a kthread for each queue */ |
413 | for (i = 0; i < ccp->cmd_q_count; i++) { | 409 | for (i = 0; i < ccp->cmd_q_count; i++) { |