KVM: x86: Use ARRAY_SIZE instead of dividing sizeof array with sizeof an element
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Mon, 4 Jul 2016 15:13:07 +0000 (15:13 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 5 Jul 2016 12:41:45 +0000 (14:41 +0200)
commit03f6a22a3979f20575c39ff86c79b3fa3b7f469d
treeeeb531774377afb333f0ee65c91faf5ca78af3aa
parentadd6a0cd1c5ba51b201e1361b05a5df817083618
KVM: x86: Use ARRAY_SIZE instead of dividing sizeof array with sizeof an element

Use ARRAY_SIZE instead of dividing sizeof array with sizeof an element

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx.c