Skip to content

Commit

Permalink
x86/kvm/vmx: remove unused variable in segment_base()
Browse files Browse the repository at this point in the history
The pointer 'struct desc_struct *d' is unused since commit 8c2e41f
("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>
  • Loading branch information
Jérémy Lefaure authored and Radim Krčmář committed Mar 1, 2017
1 parent 0eb1d0f commit 0fce546
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion arch/x86/kvm/vmx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 0fce546

Please sign in to comment.