Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e113be3a authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: kgsl: Remove unused variable global_pool"

parents 7ba48012 2155116d
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -64,7 +64,6 @@ static void pagetable_remove_sysfs_objects(struct kgsl_pagetable *pagetable);
 * devices so the global pt entry list needs to be driver wide too
 */
static struct kgsl_global_pt_entries {
	struct gen_pool *global_pool;
	unsigned int offset;
	struct kgsl_memdesc *entries[KGSL_MAX_GLOBAL_PT_ENTRIES];
	int count;
@@ -663,7 +662,6 @@ int
kgsl_mmu_get_gpuaddr(struct kgsl_pagetable *pagetable,
			struct kgsl_memdesc *memdesc)
{
	struct gen_pool *pool = NULL;
	int size;
	int page_align = ilog2(PAGE_SIZE);

@@ -690,8 +688,6 @@ kgsl_mmu_get_gpuaddr(struct kgsl_pagetable *pagetable,
	if (kgsl_memdesc_has_guard_page(memdesc))
		size += PAGE_SIZE;

	pool = pagetable->pool;

	if (KGSL_MMU_TYPE_IOMMU == kgsl_mmu_get_mmutype()) {
		/* Allocate aligned virtual addresses for iommu. This allows
		 * more efficient pagetable entries if the physical memory