All of lore.kernel.org
 help / color / mirror / Atom feed
* arch/x86/kvm/svm.c:3600: possible bad operator ?
@ 2016-05-23 11:22 David Binderman
  2016-05-23 11:42 ` Paolo Bonzini
  0 siblings, 1 reply; 5+ messages in thread
From: David Binderman @ 2016-05-23 11:22 UTC (permalink / raw)
  To: joro, pbonzini, rkrcmar, kvm, dcb314

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

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-05-23 15:11 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-23 11:22 arch/x86/kvm/svm.c:3600: possible bad operator ? David Binderman
2016-05-23 11:42 ` Paolo Bonzini
2016-05-23 14:52   ` Thomas Huth
2016-05-23 15:05     ` David Binderman
2016-05-23 15:11       ` Paolo Bonzini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.