mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-03-16 04:04:06 +00:00
KVM: Drop unnecessary initialization of "npages" in hva_to_pfn_slow()
The variable is initialized but it is only used after its assignment. Reviewed-by: Sean Christopherson <seanjc@google.com> Signed-off-by: Li kunyu <kunyu@nfschina.com> Message-Id: <20220819022804.483914-1-kunyu@nfschina.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
3d9606b0e0
commit
2824913976
1 changed files with 1 additions and 1 deletions
|
@ -2518,7 +2518,7 @@ static int hva_to_pfn_slow(unsigned long addr, bool *async, bool write_fault,
|
|||
{
|
||||
unsigned int flags = FOLL_HWPOISON;
|
||||
struct page *page;
|
||||
int npages = 0;
|
||||
int npages;
|
||||
|
||||
might_sleep();
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue