From: Jérémy Lefaure Date: Sat, 25 Feb 2017 22:46:53 +0000 (-0500) Subject: x86/kvm/vmx: remove unused variable in segment_base() X-Git-Tag: Ubuntu-5.2.0-15.16~7297^2~2 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=0fce546f9f07b94ccc9de09cf48d35e18946d2fa;p=mirror_ubuntu-eoan-kernel.git x86/kvm/vmx: remove unused variable in segment_base() The pointer 'struct desc_struct *d' is unused since commit 8c2e41f7ae12 ("x86/kvm/vmx: Simplify segment_base()") so let's remove it. Signed-off-by: Jérémy Lefaure Reviewed-by: David Hildenbrand Signed-off-by: Radim Krčmář --- diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c index ef4ba71dbb66..764f1f897847 100644 --- a/arch/x86/kvm/vmx.c +++ b/arch/x86/kvm/vmx.c @@ -2053,7 +2053,6 @@ static bool update_transition_efer(struct vcpu_vmx *vmx, int efer_offset) static unsigned long segment_base(u16 selector) { struct desc_ptr *gdt = this_cpu_ptr(&host_gdt); - struct desc_struct *d; struct desc_struct *table; unsigned long v;