vfio/fsl-mc: Fix the dead code in vfio_fsl_mc_set_irq_trigger
authorDiana Craciun <diana.craciun@oss.nxp.com>
Thu, 15 Oct 2020 18:14:17 +0000 (21:14 +0300)
committerAlex Williamson <alex.williamson@redhat.com>
Thu, 15 Oct 2020 18:46:08 +0000 (12:46 -0600)
commit159246378d8483ba63844fc03027df70501552c1
tree6da33e3a4bbb61775b1c106bd5ce219ccf21a952
parent83e491799e631dd41e7c7a870dd3a7603c461123
vfio/fsl-mc: Fix the dead code in vfio_fsl_mc_set_irq_trigger

Static analysis discovered that some code in vfio_fsl_mc_set_irq_trigger
is dead code. Fixed the code by changing the conditions order.

Fixes: cc0ee20bd969 ("vfio/fsl-mc: trigger an interrupt via eventfd")
Reported-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Diana Craciun <diana.craciun@oss.nxp.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/fsl-mc/vfio_fsl_mc_intr.c