Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

crypto: sahara - remove unused error field in sahara_dev

The "error" field in sahara_dev struct hasn't been needed/used since commit
c0c3c89ae347 ("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>

authored by

Ovidiu Panait and committed by
Herbert Xu
3d5a31df ee6e6f0a

+3 -8
+3 -8
drivers/crypto/sahara.c
··· 221 221 int nb_in_sg; 222 222 struct scatterlist *out_sg; 223 223 int nb_out_sg; 224 - 225 - u32 error; 226 224 }; 227 225 228 226 static struct sahara_dev *dev_ptr; ··· 1300 1302 1301 1303 sahara_decode_status(dev, stat); 1302 1304 1303 - if (SAHARA_STATUS_GET_STATE(stat) == SAHARA_STATE_BUSY) { 1305 + if (SAHARA_STATUS_GET_STATE(stat) == SAHARA_STATE_BUSY) 1304 1306 return IRQ_NONE; 1305 - } else if (SAHARA_STATUS_GET_STATE(stat) == SAHARA_STATE_COMPLETE) { 1306 - dev->error = 0; 1307 - } else { 1307 + 1308 + if (SAHARA_STATUS_GET_STATE(stat) != SAHARA_STATE_COMPLETE) 1308 1309 sahara_decode_error(dev, err); 1309 - dev->error = -EINVAL; 1310 - } 1311 1310 1312 1311 complete(&dev->dma_completion); 1313 1312