]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
vfio/fsl-mc: Remove unused variable 'hwirq'
authorYue Haibing <yuehaibing@huawei.com>
Tue, 30 Jul 2024 14:11:33 +0000 (22:11 +0800)
committerAlex Williamson <alex.williamson@redhat.com>
Tue, 3 Sep 2024 14:42:06 +0000 (08:42 -0600)
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>
drivers/vfio/fsl-mc/vfio_fsl_mc_intr.c

index 82b2afa9b7e3134b37107fb3ba31b0c74f4e5683..7e7988c4258fa56014ea37966def12ae9556801d 100644 (file)
@@ -108,10 +108,10 @@ static int vfio_fsl_mc_set_irq_trigger(struct vfio_fsl_mc_device *vdev,
                                       void *data)
 {
        struct fsl_mc_device *mc_dev = vdev->mc_dev;
-       int ret, hwirq;
        struct vfio_fsl_mc_irq *irq;
        struct device *cont_dev = fsl_mc_cont_dev(&mc_dev->dev);
        struct fsl_mc_device *mc_cont = to_fsl_mc_device(cont_dev);
+       int ret;
 
        if (!count && (flags & VFIO_IRQ_SET_DATA_NONE))
                return vfio_set_trigger(vdev, index, -1);
@@ -136,8 +136,6 @@ static int vfio_fsl_mc_set_irq_trigger(struct vfio_fsl_mc_device *vdev,
                return vfio_set_trigger(vdev, index, fd);
        }
 
-       hwirq = vdev->mc_dev->irqs[index]->virq;
-
        irq = &vdev->mc_irqs[index];
 
        if (flags & VFIO_IRQ_SET_DATA_NONE) {