summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/drm_prime.c
diff options
context:
space:
mode:
authorLespiau, Damien <damien.lespiau@intel.com>2013-09-28 17:24:02 +0200
committerDave Airlie <airlied@redhat.com>2013-10-01 07:28:58 +0200
commit36dccc840accf8f38d0c2be00d35e98571a2964b (patch)
treee817dfad910a1e40ef80cee9827367211377c560 /drivers/gpu/drm/drm_prime.c
parentdrm: Remove unused variable in drm_global_item_ref() (diff)
downloadlinux-36dccc840accf8f38d0c2be00d35e98571a2964b.tar.xz
linux-36dccc840accf8f38d0c2be00d35e98571a2964b.zip
drm: Remove unused variable in drm_prime_sg_to_page_addr_arrays()
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/drm_prime.c')
-rw-r--r--drivers/gpu/drm/drm_prime.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/drm/drm_prime.c b/drivers/gpu/drm/drm_prime.c
index 276d470f7b3e..56805c39c906 100644
--- a/drivers/gpu/drm/drm_prime.c
+++ b/drivers/gpu/drm/drm_prime.c
@@ -637,14 +637,13 @@ int drm_prime_sg_to_page_addr_arrays(struct sg_table *sgt, struct page **pages,
unsigned count;
struct scatterlist *sg;
struct page *page;
- u32 len, offset;
+ u32 len;
int pg_index;
dma_addr_t addr;
pg_index = 0;
for_each_sg(sgt->sgl, sg, sgt->nents, count) {
len = sg->length;
- offset = sg->offset;
page = sg_page(sg);
addr = sg_dma_address(sg);