Commit 36dccc84 authored by Lespiau, Damien's avatar Lespiau, Damien Committed by Dave Airlie

drm: Remove unused variable in drm_prime_sg_to_page_addr_arrays()

Signed-off-by: default avatarDamien Lespiau <damien.lespiau@intel.com>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent 5a6b088f
...@@ -637,14 +637,13 @@ int drm_prime_sg_to_page_addr_arrays(struct sg_table *sgt, struct page **pages, ...@@ -637,14 +637,13 @@ int drm_prime_sg_to_page_addr_arrays(struct sg_table *sgt, struct page **pages,
unsigned count; unsigned count;
struct scatterlist *sg; struct scatterlist *sg;
struct page *page; struct page *page;
u32 len, offset; u32 len;
int pg_index; int pg_index;
dma_addr_t addr; dma_addr_t addr;
pg_index = 0; pg_index = 0;
for_each_sg(sgt->sgl, sg, sgt->nents, count) { for_each_sg(sgt->sgl, sg, sgt->nents, count) {
len = sg->length; len = sg->length;
offset = sg->offset;
page = sg_page(sg); page = sg_page(sg);
addr = sg_dma_address(sg); addr = sg_dma_address(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