Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

vfio/pci: drop redundant conversion to bool

The result of integer comparison already evaluates to bool. No need for
explicit conversion.

No functional impact.

Signed-off-by: Xichao Zhao <zhao.xichao@vivo.com>
Link: https://lore.kernel.org/r/20250818085201.510206-1-zhao.xichao@vivo.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>

authored by

Xichao Zhao and committed by
Alex Williamson
473c3af3 1b1d9ca1

+1 -1
+1 -1
drivers/vfio/pci/vfio_pci_intrs.c
··· 677 677 { 678 678 struct vfio_pci_irq_ctx *ctx; 679 679 unsigned int i; 680 - bool msix = (index == VFIO_PCI_MSIX_IRQ_INDEX) ? true : false; 680 + bool msix = (index == VFIO_PCI_MSIX_IRQ_INDEX); 681 681 682 682 if (irq_is(vdev, index) && !count && (flags & VFIO_IRQ_SET_DATA_NONE)) { 683 683 vfio_msi_disable(vdev, msix);