diff options
author | Kim Phillips <kim.phillips@freescale.com> | 2011-07-14 23:21:39 -0400 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2011-07-14 23:21:39 -0400 |
commit | febec54286623a540cbe483a5d471ff6576a6e2e (patch) | |
tree | 14d91edd77f2a1c3582c34d169ba0e4eec4547ba /drivers/crypto | |
parent | 602dba5a81790375f364e484cbc439f17157752e (diff) |
crypto: talitos - remove unused giv from ablkcipher methods
Signed-off-by: Kim Phillips <kim.phillips@freescale.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto')
-rw-r--r-- | drivers/crypto/talitos.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/crypto/talitos.c b/drivers/crypto/talitos.c index bd9e2ca0728c..521244e08fb1 100644 --- a/drivers/crypto/talitos.c +++ b/drivers/crypto/talitos.c | |||
@@ -1429,7 +1429,6 @@ static void ablkcipher_done(struct device *dev, | |||
1429 | 1429 | ||
1430 | static int common_nonsnoop(struct talitos_edesc *edesc, | 1430 | static int common_nonsnoop(struct talitos_edesc *edesc, |
1431 | struct ablkcipher_request *areq, | 1431 | struct ablkcipher_request *areq, |
1432 | u8 *giv, | ||
1433 | void (*callback) (struct device *dev, | 1432 | void (*callback) (struct device *dev, |
1434 | struct talitos_desc *desc, | 1433 | struct talitos_desc *desc, |
1435 | void *context, int error)) | 1434 | void *context, int error)) |
@@ -1449,7 +1448,7 @@ static int common_nonsnoop(struct talitos_edesc *edesc, | |||
1449 | 1448 | ||
1450 | /* cipher iv */ | 1449 | /* cipher iv */ |
1451 | ivsize = crypto_ablkcipher_ivsize(cipher); | 1450 | ivsize = crypto_ablkcipher_ivsize(cipher); |
1452 | map_single_talitos_ptr(dev, &desc->ptr[1], ivsize, giv ?: areq->info, 0, | 1451 | map_single_talitos_ptr(dev, &desc->ptr[1], ivsize, areq->info, 0, |
1453 | DMA_TO_DEVICE); | 1452 | DMA_TO_DEVICE); |
1454 | 1453 | ||
1455 | /* cipher key */ | 1454 | /* cipher key */ |
@@ -1552,7 +1551,7 @@ static int ablkcipher_encrypt(struct ablkcipher_request *areq) | |||
1552 | /* set encrypt */ | 1551 | /* set encrypt */ |
1553 | edesc->desc.hdr = ctx->desc_hdr_template | DESC_HDR_MODE0_ENCRYPT; | 1552 | edesc->desc.hdr = ctx->desc_hdr_template | DESC_HDR_MODE0_ENCRYPT; |
1554 | 1553 | ||
1555 | return common_nonsnoop(edesc, areq, NULL, ablkcipher_done); | 1554 | return common_nonsnoop(edesc, areq, ablkcipher_done); |
1556 | } | 1555 | } |
1557 | 1556 | ||
1558 | static int ablkcipher_decrypt(struct ablkcipher_request *areq) | 1557 | static int ablkcipher_decrypt(struct ablkcipher_request *areq) |
@@ -1568,7 +1567,7 @@ static int ablkcipher_decrypt(struct ablkcipher_request *areq) | |||
1568 | 1567 | ||
1569 | edesc->desc.hdr = ctx->desc_hdr_template | DESC_HDR_DIR_INBOUND; | 1568 | edesc->desc.hdr = ctx->desc_hdr_template | DESC_HDR_DIR_INBOUND; |
1570 | 1569 | ||
1571 | return common_nonsnoop(edesc, areq, NULL, ablkcipher_done); | 1570 | return common_nonsnoop(edesc, areq, ablkcipher_done); |
1572 | } | 1571 | } |
1573 | 1572 | ||
1574 | static void common_nonsnoop_hash_unmap(struct device *dev, | 1573 | static void common_nonsnoop_hash_unmap(struct device *dev, |