Commit 89e2a840 authored by Christoph Hellwig's avatar Christoph Hellwig Committed by Jens Axboe

crypto/omap-sham: remove an open coded access to ->page_link

Signed-off-by: default avatarDan Williams <dan.j.williams@intel.com>
[hch: split from a larger patch by Dan]
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Acked-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: default avatarJens Axboe <axboe@fb.com>
parent da81ed16
...@@ -588,7 +588,7 @@ static int omap_sham_xmit_dma(struct omap_sham_dev *dd, dma_addr_t dma_addr, ...@@ -588,7 +588,7 @@ static int omap_sham_xmit_dma(struct omap_sham_dev *dd, dma_addr_t dma_addr,
* the dmaengine may try to DMA the incorrect amount of data. * the dmaengine may try to DMA the incorrect amount of data.
*/ */
sg_init_table(&ctx->sgl, 1); sg_init_table(&ctx->sgl, 1);
ctx->sgl.page_link = ctx->sg->page_link; sg_assign_page(&ctx->sgl, sg_page(ctx->sg));
ctx->sgl.offset = ctx->sg->offset; ctx->sgl.offset = ctx->sg->offset;
sg_dma_len(&ctx->sgl) = len32; sg_dma_len(&ctx->sgl) = len32;
sg_dma_address(&ctx->sgl) = sg_dma_address(ctx->sg); sg_dma_address(&ctx->sgl) = sg_dma_address(ctx->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