misc: pci_endpoint_test: Simplify pci_endpoint_test_msi_irq()
authorDamien Le Moal <dlemoal@kernel.org>
Sat, 15 Apr 2023 02:35:42 +0000 (11:35 +0900)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 23 Jun 2023 20:04:15 +0000 (15:04 -0500)
commit4c50f933f50e018653a11bd77eb872d46d67c193
tree63e37534605f27fc54866e03ad6f218932134e8e
parent168e6f62e4298815125591ff9c85d374b2a93c6c
misc: pci_endpoint_test: Simplify pci_endpoint_test_msi_irq()

Simplify the code of pci_endpoint_test_msi_irq() by correctly using
booleans: remove the msix comparison to false as that variable is already a
boolean, and directly return the result of the comparison of the raised
interrupt number.

Link: https://lore.kernel.org/r/20230415023542.77601-18-dlemoal@kernel.org
Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
Signed-off-by: Lorenzo Pieralisi <lpieralisi@kernel.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Manivannan Sadhasivam <mani@kernel.org>
drivers/misc/pci_endpoint_test.c