Commit bd5f43de authored by Cyrille Pitchen's avatar Cyrille Pitchen Committed by Herbert Xu

crypto: atmel-aes - remove unused 'err' member of struct atmel_aes_dev

This 'err' member was initialized to 0 but its value never changed.
Signed-off-by: default avatarCyrille Pitchen <cyrille.pitchen@atmel.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 10f12c1b
...@@ -127,7 +127,6 @@ struct atmel_aes_dev { ...@@ -127,7 +127,6 @@ struct atmel_aes_dev {
int irq; int irq;
unsigned long flags; unsigned long flags;
int err;
spinlock_t lock; spinlock_t lock;
struct crypto_queue queue; struct crypto_queue queue;
...@@ -288,7 +287,6 @@ static int atmel_aes_hw_init(struct atmel_aes_dev *dd) ...@@ -288,7 +287,6 @@ static int atmel_aes_hw_init(struct atmel_aes_dev *dd)
atmel_aes_write(dd, AES_CR, AES_CR_SWRST); atmel_aes_write(dd, AES_CR, AES_CR_SWRST);
atmel_aes_write(dd, AES_MR, 0xE << AES_MR_CKEY_OFFSET); atmel_aes_write(dd, AES_MR, 0xE << AES_MR_CKEY_OFFSET);
dd->flags |= AES_FLAGS_INIT; dd->flags |= AES_FLAGS_INIT;
dd->err = 0;
} }
return 0; return 0;
...@@ -1171,9 +1169,6 @@ static int atmel_aes_dma_complete(struct atmel_aes_dev *dd) ...@@ -1171,9 +1169,6 @@ static int atmel_aes_dma_complete(struct atmel_aes_dev *dd)
int err; int err;
err = atmel_aes_crypt_dma_stop(dd); err = atmel_aes_crypt_dma_stop(dd);
err = dd->err ? : err;
if (dd->total && !err) { if (dd->total && !err) {
if (dd->flags & AES_FLAGS_FAST) { if (dd->flags & AES_FLAGS_FAST) {
dd->in_sg = sg_next(dd->in_sg); dd->in_sg = sg_next(dd->in_sg);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment