summaryrefslogtreecommitdiffstats
path: root/virt
diff options
context:
space:
mode:
authorShaokun Zhang <zhangshaokun@hisilicon.com>2019-02-19 17:22:21 +0800
committerMarc Zyngier <marc.zyngier@arm.com>2019-02-20 11:00:27 +0000
commitc2be79a0bcf34ed975787e03a129936df17ec0dc (patch)
tree54ee031fc3a38e819a41d8dea99cc99525275215 /virt
parent1b44471b555930cd8d03ae9be86bd2c32fbf0a92 (diff)
downloadlinux-c2be79a0bcf34ed975787e03a129936df17ec0dc.tar.gz
linux-c2be79a0bcf34ed975787e03a129936df17ec0dc.tar.bz2
linux-c2be79a0bcf34ed975787e03a129936df17ec0dc.zip
KVM: arm/arm64: Remove unused gpa_end variable
The 'gpa_end' local variable is never used and let's remove it. Cc: Christoffer Dall <christoffer.dall@arm.com> Signed-off-by: Shaokun Zhang <zhangshaokun@hisilicon.com> Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Diffstat (limited to 'virt')
-rw-r--r--virt/kvm/arm/mmu.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/virt/kvm/arm/mmu.c b/virt/kvm/arm/mmu.c
index e3e5a26b4845..aae68da2717f 100644
--- a/virt/kvm/arm/mmu.c
+++ b/virt/kvm/arm/mmu.c
@@ -1597,14 +1597,13 @@ static void kvm_send_hwpoison_signal(unsigned long address,
static bool fault_supports_stage2_pmd_mappings(struct kvm_memory_slot *memslot,
unsigned long hva)
{
- gpa_t gpa_start, gpa_end;
+ gpa_t gpa_start;
hva_t uaddr_start, uaddr_end;
size_t size;
size = memslot->npages * PAGE_SIZE;
gpa_start = memslot->base_gfn << PAGE_SHIFT;
- gpa_end = gpa_start + size;
uaddr_start = memslot->userspace_addr;
uaddr_end = uaddr_start + size;