提交 67adc432 编写于 作者: M Mogens Lauridsen 提交者: Herbert Xu

crypto: sahara - Remove leftover from previous used spinlock

This driver previously used a spinlock. The spinlock is not
used any more, but the spinlock variable was still there
and also being initialized.
Signed-off-by: NMogens Lauridsen <mlauridsen171@gmail.com>
Signed-off-by: NHerbert Xu <herbert@gondor.apana.org.au>
上级 1e320410
...@@ -202,7 +202,6 @@ struct sahara_dev { ...@@ -202,7 +202,6 @@ struct sahara_dev {
struct completion dma_completion; struct completion dma_completion;
struct sahara_ctx *ctx; struct sahara_ctx *ctx;
spinlock_t lock;
struct crypto_queue queue; struct crypto_queue queue;
unsigned long flags; unsigned long flags;
...@@ -1487,7 +1486,6 @@ static int sahara_probe(struct platform_device *pdev) ...@@ -1487,7 +1486,6 @@ static int sahara_probe(struct platform_device *pdev)
crypto_init_queue(&dev->queue, SAHARA_QUEUE_LENGTH); crypto_init_queue(&dev->queue, SAHARA_QUEUE_LENGTH);
spin_lock_init(&dev->lock);
mutex_init(&dev->queue_mutex); mutex_init(&dev->queue_mutex);
dev_ptr = dev; dev_ptr = dev;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册