arch/x86/kvm/svm.c:3600: possible bad operator ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello there,

arch/x86/kvm/svm.c:3600:45: warning: logical ‘and’ applied to
non-boolean constant [-Wlogical-op]

Source code is

    u32 index = svm->vmcb->control.exit_info_2 && 0xFF;

Maybe better code

    u32 index = svm->vmcb->control.exit_info_2 & 0xFF;


Regards

David Binderman
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux