From: Lespiau, Damien Date: Sat, 28 Sep 2013 15:24:02 +0000 (+0100) Subject: drm: Remove unused variable in drm_prime_sg_to_page_addr_arrays() X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=36dccc840accf8f38d0c2be00d35e98571a2964b;p=linux-beck.git drm: Remove unused variable in drm_prime_sg_to_page_addr_arrays() Signed-off-by: Damien Lespiau Signed-off-by: Dave Airlie --- 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);