Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Shivank Garg and committed by
Sean Christopherson
3f1078a4 049e560d

-1
-1
virt/kvm/guest_memfd.c
··· 668 668 return ERR_PTR(-EFAULT); 669 669 } 670 670 671 - gmem = file->private_data; 672 671 if (xa_load(&gmem->bindings, index) != slot) { 673 672 WARN_ON_ONCE(xa_load(&gmem->bindings, index)); 674 673 return ERR_PTR(-EIO);