Skip to contentSkip to conversation

crypto: sahara - Remove leftover from previous used spinlock

PATCH In review Mogens Lauridsen 2 participants 2 messages Aug 3, 2017 – Aug 17, 2017 Crypto API

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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.

---
 drivers/crypto/sahara.c | 2 --
 1 file changed, 2 deletions(-)
drivers/crypto/sahara.c +0 -2
index 474da36bdd2c..03a8abad7e76 100644
@@ -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;
Signature · 1 line
2.13.4
maintainer
#1 lore raw
Quoted 5 lines · 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.

Patch applied. Thanks.

Signature · 3 lines
Email: Herbert Xu <[email protected]>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt