Skip to content

Commit 0fce546

Browse files
Jérémy Lefaurerkrcmar
authored andcommitted
x86/kvm/vmx: remove unused variable in segment_base()
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>
1 parent 0eb1d0f commit 0fce546

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

arch/x86/kvm/vmx.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2053,7 +2053,6 @@ static bool update_transition_efer(struct vcpu_vmx *vmx, int efer_offset)
20532053
static unsigned long segment_base(u16 selector)
20542054
{
20552055
struct desc_ptr *gdt = this_cpu_ptr(&host_gdt);
2056-
struct desc_struct *d;
20572056
struct desc_struct *table;
20582057
unsigned long v;
20592058

0 commit comments

Comments
 (0)