mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-01-11 17:10:13 +00: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
@ -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…
x
Reference in New Issue
Block a user