]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: Remove superfluous brackets from case statement
authorSean Christopherson <sean.j.christopherson@intel.com>
Tue, 18 Feb 2020 23:40:10 +0000 (15:40 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 27 May 2020 17:11:07 +0000 (13:11 -0400)
commit8cffe07c021a5444bee6a0668bb04ef64d70527a
tree4b49af3ba1da688007aa73ba5b2aa369e34f3b81
parent74b79147c6ab4f77ad6f3e080a6e543504c15734
KVM: x86: Remove superfluous brackets from case statement

Remove unnecessary brackets from a case statement that unintentionally
encapsulates unrelated case statements in the same switch statement.
While technically legal and functionally correct syntax, the brackets
are visually confusing and potentially dangerous, e.g. the last of the
encapsulated case statements has an undocumented fall-through that isn't
flagged by compilers due the encapsulation.

Reviewed-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
Message-Id: <20200218234012.7110-2-sean.j.christopherson@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/x86.c