mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 22:21:40 +00:00
crypto: sahara - remove unused error field in sahara_dev
The "error" field in sahara_dev struct hasn't been needed/used since commit
c0c3c89ae3
("crypto: sahara - replace tasklets with kthread"), so remove
the remaining references.
Signed-off-by: Ovidiu Panait <ovidiu.panait@windriver.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
parent
ee6e6f0a7f
commit
3d5a31dff1
@ -221,8 +221,6 @@ struct sahara_dev {
|
||||
int nb_in_sg;
|
||||
struct scatterlist *out_sg;
|
||||
int nb_out_sg;
|
||||
|
||||
u32 error;
|
||||
};
|
||||
|
||||
static struct sahara_dev *dev_ptr;
|
||||
@ -1302,14 +1300,11 @@ static irqreturn_t sahara_irq_handler(int irq, void *data)
|
||||
|
||||
sahara_decode_status(dev, stat);
|
||||
|
||||
if (SAHARA_STATUS_GET_STATE(stat) == SAHARA_STATE_BUSY) {
|
||||
if (SAHARA_STATUS_GET_STATE(stat) == SAHARA_STATE_BUSY)
|
||||
return IRQ_NONE;
|
||||
} else if (SAHARA_STATUS_GET_STATE(stat) == SAHARA_STATE_COMPLETE) {
|
||||
dev->error = 0;
|
||||
} else {
|
||||
|
||||
if (SAHARA_STATUS_GET_STATE(stat) != SAHARA_STATE_COMPLETE)
|
||||
sahara_decode_error(dev, err);
|
||||
dev->error = -EINVAL;
|
||||
}
|
||||
|
||||
complete(&dev->dma_completion);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user