mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Alex Williamson <alex.williamson@redhat.com>
To: Yue Haibing <yuehaibing@huawei.com>
Cc: <kvm@vger.kernel.org>, <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH -next] vfio/fsl-mc: Remove unused variable 'hwirq'
Date: Tue, 3 Sep 2024 12:47:07 -0600	[thread overview]
Message-ID: <20240903124707.4ecfc5de.alex.williamson@redhat.com> (raw)
In-Reply-To: <20240730141133.525771-1-yuehaibing@huawei.com>

On Tue, 30 Jul 2024 22:11:33 +0800
Yue Haibing <yuehaibing@huawei.com> wrote:

> 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>
> ---
>  drivers/vfio/fsl-mc/vfio_fsl_mc_intr.c | 4 +---
>  1 file changed, 1 insertion(+), 3 deletions(-)
> 
> diff --git a/drivers/vfio/fsl-mc/vfio_fsl_mc_intr.c b/drivers/vfio/fsl-mc/vfio_fsl_mc_intr.c
> index 82b2afa9b7e3..7e7988c4258f 100644
> --- a/drivers/vfio/fsl-mc/vfio_fsl_mc_intr.c
> +++ b/drivers/vfio/fsl-mc/vfio_fsl_mc_intr.c
> @@ -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) {

Applied to vfio next branch for v6.12.  Thanks!

Alex


      reply	other threads:[~2024-09-03 18:47 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-07-30 14:11 Yue Haibing
2024-09-03 18:47 ` Alex Williamson [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20240903124707.4ecfc5de.alex.williamson@redhat.com \
    --to=alex.williamson@redhat.com \
    --cc=kvm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=yuehaibing@huawei.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®