All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] crypto: sahara - Remove leftover from previous used spinlock
@ 2017-08-03 13:46 Mogens Lauridsen
  2017-08-17  9:00 ` Herbert Xu
  0 siblings, 1 reply; 2+ messages in thread
From: Mogens Lauridsen @ 2017-08-03 13:46 UTC (permalink / raw)
  To: herbert; +Cc: linux-crypto, Mogens Lauridsen

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: Mogens Lauridsen <mlauridsen171@gmail.com>
---
 drivers/crypto/sahara.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/drivers/crypto/sahara.c b/drivers/crypto/sahara.c
index 474da36bdd2c..03a8abad7e76 100644
--- a/drivers/crypto/sahara.c
+++ b/drivers/crypto/sahara.c
@@ -202,7 +202,6 @@ struct sahara_dev {
 	struct completion	dma_completion;
 
 	struct sahara_ctx	*ctx;
-	spinlock_t		lock;
 	struct crypto_queue	queue;
 	unsigned long		flags;
 
@@ -1487,7 +1486,6 @@ static int sahara_probe(struct platform_device *pdev)
 
 	crypto_init_queue(&dev->queue, SAHARA_QUEUE_LENGTH);
 
-	spin_lock_init(&dev->lock);
 	mutex_init(&dev->queue_mutex);
 
 	dev_ptr = dev;
-- 
2.13.4

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] crypto: sahara - Remove leftover from previous used spinlock
  2017-08-03 13:46 [PATCH] crypto: sahara - Remove leftover from previous used spinlock Mogens Lauridsen
@ 2017-08-17  9:00 ` Herbert Xu
  0 siblings, 0 replies; 2+ messages in thread
From: Herbert Xu @ 2017-08-17  9:00 UTC (permalink / raw)
  To: Mogens Lauridsen; +Cc: linux-crypto

On Thu, Aug 03, 2017 at 03:46:35PM +0200, Mogens Lauridsen wrote:
> 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: Mogens Lauridsen <mlauridsen171@gmail.com>

Patch applied.  Thanks.
-- 
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-08-17  9:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-03 13:46 [PATCH] crypto: sahara - Remove leftover from previous used spinlock Mogens Lauridsen
2017-08-17  9:00 ` Herbert Xu

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.