From: Sahid Orentino Ferdjaoui <sferdjao@redhat.com>
To: weiqi <weiqi4@huawei.com>
Cc: pbonzini@redhat.com, arei.gonglei@huawei.com, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH 3/3] esp-pci: simple clean up
Date: Fri, 7 Apr 2017 10:49:31 +0200 [thread overview]
Message-ID: <20170407084931.GC26482@redhat> (raw)
In-Reply-To: <1491548348-61640-1-git-send-email-weiqi4@huawei.com>
On Fri, Apr 07, 2017 at 02:59:08PM +0800, weiqi wrote:
> From: Wei Qi <weiqi4@huawei.com>
>
> It is unnecessary to assign variable 'size' here, because 'size' unused after assignment.
>
> Signed-off-by: Wei Qi <weiqi4@huawei.com>
> ---
> hw/scsi/esp-pci.c | 1 -
> 1 file changed, 1 deletion(-)
Reviewed-By: Sahid Orentino Ferdjaoui <sahid.ferdjaoui@redhat.com>
>
> diff --git a/hw/scsi/esp-pci.c b/hw/scsi/esp-pci.c
> index e295d88..1f5980e 100644
> --- a/hw/scsi/esp-pci.c
> +++ b/hw/scsi/esp-pci.c
> @@ -192,7 +192,6 @@ static void esp_pci_io_write(void *opaque, hwaddr addr,
> val <<= shift;
> val |= current & ~(mask << shift);
> addr &= ~3;
> - size = 4;
I verified that 'size' is passed by value to 'esp_pci_io_write(...)',
no loop, no recursivity.
> }
>
> if (addr < 0x40) {
> --
> 1.8.3.1
>
>
prev parent reply other threads:[~2017-04-07 8:49 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-07 6:59 [Qemu-devel] [PATCH 3/3] esp-pci: simple clean up weiqi
2017-04-07 8:49 ` Sahid Orentino Ferdjaoui [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=20170407084931.GC26482@redhat \
--to=sferdjao@redhat.com \
--cc=arei.gonglei@huawei.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=weiqi4@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;
as well as URLs for NNTP newsgroup(s).