mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 18:13:41 +02:00
drm/pagemap: Remove some dead code
The page pointer can't be NULL. v5: - New patch. (Matt Brost) Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com> Reviewed-by: Matthew Brost <matthew.brost@intel.com> Acked-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com> # For merging through drm-xe. Link: https://patch.msgid.link/20251219113320.183860-3-thomas.hellstrom@linux.intel.com
This commit is contained in:
parent
72aee5f70b
commit
d1a4fc044c
|
|
@ -702,19 +702,6 @@ static int __drm_pagemap_migrate_to_ram(struct vm_area_struct *vas,
|
|||
if (!migrate.cpages)
|
||||
goto err_free;
|
||||
|
||||
if (!page) {
|
||||
for (i = 0; i < npages; ++i) {
|
||||
if (!(migrate.src[i] & MIGRATE_PFN_MIGRATE))
|
||||
continue;
|
||||
|
||||
page = migrate_pfn_to_page(migrate.src[i]);
|
||||
break;
|
||||
}
|
||||
|
||||
if (!page)
|
||||
goto err_finalize;
|
||||
}
|
||||
zdd = page->zone_device_data;
|
||||
ops = zdd->devmem_allocation->ops;
|
||||
dev = zdd->devmem_allocation->dev;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user