Skip to content

Commit a7aaa65

Browse files
Yue Haibingawilliam
authored andcommitted
vfio/fsl-mc: Remove unused variable 'hwirq'
Commit 7447d91 ("vfio/fsl-mc: Block calling interrupt handler without trigger") left this variable unused, so remove it. Signed-off-by: Yue Haibing <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alex Williamson <[email protected]>
1 parent e1bf0f2 commit a7aaa65

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/vfio/fsl-mc/vfio_fsl_mc_intr.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,10 +108,10 @@ static int vfio_fsl_mc_set_irq_trigger(struct vfio_fsl_mc_device *vdev,
108108
void *data)
109109
{
110110
struct fsl_mc_device *mc_dev = vdev->mc_dev;
111-
int ret, hwirq;
112111
struct vfio_fsl_mc_irq *irq;
113112
struct device *cont_dev = fsl_mc_cont_dev(&mc_dev->dev);
114113
struct fsl_mc_device *mc_cont = to_fsl_mc_device(cont_dev);
114+
int ret;
115115

116116
if (!count && (flags & VFIO_IRQ_SET_DATA_NONE))
117117
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,
136136
return vfio_set_trigger(vdev, index, fd);
137137
}
138138

139-
hwirq = vdev->mc_dev->irqs[index]->virq;
140-
141139
irq = &vdev->mc_irqs[index];
142140

143141
if (flags & VFIO_IRQ_SET_DATA_NONE) {

0 commit comments

Comments
 (0)