x86/kvm/vmx: remove unused variable in segment_base()
authorJérémy Lefaure <jeremy.lefaure@lse.epita.fr>
Sat, 25 Feb 2017 22:46:53 +0000 (17:46 -0500)
committerRadim Krčmář <rkrcmar@redhat.com>
Wed, 1 Mar 2017 16:03:24 +0000 (17:03 +0100)
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 <jeremy.lefaure@lse.epita.fr>
Reviewed-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
arch/x86/kvm/vmx.c

index ef4ba71dbb66a50eab012c5f6e303a559bde1a71..764f1f897847b1bb7ba5e125785de34b4d70107d 100644 (file)
@@ -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;