Skip to content

Commit

Permalink
crypto: ixp4xx - Use sg_virt()
Browse files Browse the repository at this point in the history
Use sg_virt() instead of open-coding it.

Signed-off-by: Geliang Tang <geliangtang@gmail.com>
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
  • Loading branch information
Geliang Tang authored and Herbert Xu committed Mar 24, 2017
1 parent 44068d5 commit 796b40c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/crypto/ixp4xx_crypto.c
Original file line number Diff line number Diff line change
Expand Up @@ -806,7 +806,7 @@ static struct buffer_desc *chainup_buffers(struct device *dev,
void *ptr;

nbytes -= len;
ptr = page_address(sg_page(sg)) + sg->offset;
ptr = sg_virt(sg);
next_buf = dma_pool_alloc(buffer_pool, flags, &next_buf_phys);
if (!next_buf) {
buf = NULL;
Expand Down

0 comments on commit 796b40c

Please sign in to comment.