mirror of
https://github.com/FEX-Emu/linux.git
synced 2024-12-16 22:10:24 +00:00
crypto: ixp4xx - Use sg_virt()
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>
This commit is contained in:
parent
44068d5999
commit
796b40c617
@ -806,7 +806,7 @@ static struct buffer_desc *chainup_buffers(struct device *dev,
|
|||||||
void *ptr;
|
void *ptr;
|
||||||
|
|
||||||
nbytes -= len;
|
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);
|
next_buf = dma_pool_alloc(buffer_pool, flags, &next_buf_phys);
|
||||||
if (!next_buf) {
|
if (!next_buf) {
|
||||||
buf = NULL;
|
buf = NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user