x86/vmx: fix compilation after 997382
authorRoger Pau Monné <roger.pau@citrix.com>
Fri, 17 Feb 2017 15:08:37 +0000 (16:08 +0100)
committerJan Beulich <jbeulich@suse.com>
Fri, 17 Feb 2017 15:08:37 +0000 (16:08 +0100)
commitd37f938821d7d9d3feb48225f88820102d90bc05
tree9eb8180050e6872bd5ed6e051cad8957c0e0c4a1
parent29c249edee121ffc8446cbd7e7d3cde0610a10e6
x86/vmx: fix compilation after 997382

997382 introduced the following errors:

intr.c:342:46: error: address of array 'vlapic->regs->data' will always evaluate to 'true'
      [-Werror,-Wpointer-bool-conversion]
                if ( vlapic && vlapic->regs->data )
                            ~~ ~~~~~~~~~~~~~~^~~~
intr.c:352:42: error: address of array 'pi_desc->pir' will always evaluate to 'true'
      [-Werror,-Wpointer-bool-conversion]
                if ( pi_desc && pi_desc->pir )
                             ~~ ~~~~~~~~~^~~
Both of those checks are done against static arrays, which doesn't seem to make
much sense, so just remove them.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/hvm/vmx/intr.c