mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 01:04:41 +01:00
KVM: guest_memfd: remove redundant gmem variable initialization
Remove redundant initialization of gmem in __kvm_gmem_get_pfn() as it is already initialized at the top of the function. No functional change intended. Reviewed-by: David Hildenbrand <david@redhat.com> Signed-off-by: Shivank Garg <shivankg@amd.com> Link: https://lore.kernel.org/r/20251012071607.17646-2-shivankg@amd.com Signed-off-by: Sean Christopherson <seanjc@google.com>
This commit is contained in:
parent
049e560d4f
commit
3f1078a445
1 changed files with 0 additions and 1 deletions
|
|
@ -668,7 +668,6 @@ static struct folio *__kvm_gmem_get_pfn(struct file *file,
|
|||
return ERR_PTR(-EFAULT);
|
||||
}
|
||||
|
||||
gmem = file->private_data;
|
||||
if (xa_load(&gmem->bindings, index) != slot) {
|
||||
WARN_ON_ONCE(xa_load(&gmem->bindings, index));
|
||||
return ERR_PTR(-EIO);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue