crypto: talitos - Uniform coding style with defined variable
Use the defined variable "desc" to uniform coding style. Signed-off-by: jianchunfu <jianchunfu@cmss.chinamobile.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
parent
e0c77eb37e
commit
6ae7a8b193
|
@ -1709,7 +1709,7 @@ static void common_nonsnoop_hash_unmap(struct device *dev,
|
|||
struct talitos_desc *desc2 = (struct talitos_desc *)
|
||||
(edesc->buf + edesc->dma_len);
|
||||
|
||||
unmap_single_talitos_ptr(dev, &edesc->desc.ptr[5], DMA_FROM_DEVICE);
|
||||
unmap_single_talitos_ptr(dev, &desc->ptr[5], DMA_FROM_DEVICE);
|
||||
if (desc->next_desc &&
|
||||
desc->ptr[5].ptr != desc2->ptr[5].ptr)
|
||||
unmap_single_talitos_ptr(dev, &desc2->ptr[5], DMA_FROM_DEVICE);
|
||||
|
@ -1721,8 +1721,8 @@ static void common_nonsnoop_hash_unmap(struct device *dev,
|
|||
talitos_sg_unmap(dev, edesc, req_ctx->psrc, NULL, 0, 0);
|
||||
|
||||
/* When using hashctx-in, must unmap it. */
|
||||
if (from_talitos_ptr_len(&edesc->desc.ptr[1], is_sec1))
|
||||
unmap_single_talitos_ptr(dev, &edesc->desc.ptr[1],
|
||||
if (from_talitos_ptr_len(&desc->ptr[1], is_sec1))
|
||||
unmap_single_talitos_ptr(dev, &desc->ptr[1],
|
||||
DMA_TO_DEVICE);
|
||||
else if (desc->next_desc)
|
||||
unmap_single_talitos_ptr(dev, &desc2->ptr[1],
|
||||
|
@ -1736,8 +1736,8 @@ static void common_nonsnoop_hash_unmap(struct device *dev,
|
|||
dma_unmap_single(dev, edesc->dma_link_tbl, edesc->dma_len,
|
||||
DMA_BIDIRECTIONAL);
|
||||
|
||||
if (edesc->desc.next_desc)
|
||||
dma_unmap_single(dev, be32_to_cpu(edesc->desc.next_desc),
|
||||
if (desc->next_desc)
|
||||
dma_unmap_single(dev, be32_to_cpu(desc->next_desc),
|
||||
TALITOS_DESC_SIZE, DMA_BIDIRECTIONAL);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue