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

vfio/fsl-mc: Remove unused variable 'hwirq'

Commit 7447d911af69 ("vfio/fsl-mc: Block calling interrupt handler without trigger")
left this variable unused, so remove it.

Signed-off-by: Yue Haibing <yuehaibing@huawei.com>
Link: https://lore.kernel.org/r/20240730141133.525771-1-yuehaibing@huawei.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>

authored by

Yue Haibing and committed by
Alex Williamson
a7aaa65f e1bf0f2a

+1 -3
+1 -3
drivers/vfio/fsl-mc/vfio_fsl_mc_intr.c
··· 108 108 void *data) 109 109 { 110 110 struct fsl_mc_device *mc_dev = vdev->mc_dev; 111 - int ret, hwirq; 112 111 struct vfio_fsl_mc_irq *irq; 113 112 struct device *cont_dev = fsl_mc_cont_dev(&mc_dev->dev); 114 113 struct fsl_mc_device *mc_cont = to_fsl_mc_device(cont_dev); 114 + int ret; 115 115 116 116 if (!count && (flags & VFIO_IRQ_SET_DATA_NONE)) 117 117 return vfio_set_trigger(vdev, index, -1); ··· 135 135 136 136 return vfio_set_trigger(vdev, index, fd); 137 137 } 138 - 139 - hwirq = vdev->mc_dev->irqs[index]->virq; 140 138 141 139 irq = &vdev->mc_irqs[index]; 142 140