From: Thomas Huth <thuth@redhat.com>
To: pannengyuan@huawei.com, alistair@alistair23.me, peter.maydell@linaro.org
Cc: qemu-trivial@nongnu.org, qemu-devel@nongnu.org,
"Philippe Mathieu-Daudé" <philmd@redhat.com>,
zhang.zhanghailiang@huawei.com,
"Euler Robot" <euler.robot@huawei.com>
Subject: Re: [PATCH] stm32f4xx_syscfg: remove redundant code to fix coverity warning
Date: Thu, 23 Jan 2020 06:26:34 +0100 [thread overview]
Message-ID: <6aaa3f39-81bd-5333-9083-d95dd3cbe6b9@redhat.com> (raw)
In-Reply-To: <20200123023845.20980-1-pannengyuan@huawei.com>
On 23/01/2020 03.38, pannengyuan@huawei.com wrote:
> From: Pan Nengyuan <pannengyuan@huawei.com>
>
> Fixes the coverity warning:
> CID 91708242: (EVALUATION_ORDER)
> 50. write_write_typo: In "config = config = irq / 16", "config" is written twice with the same value.
> 50 uint8_t config = config = irq / 16;
>
> Reported-by: Euler Robot <euler.robot@huawei.com>
> Signed-off-by: Pan Nengyuan <pannengyuan@huawei.com>
> ---
> hw/misc/stm32f4xx_syscfg.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/hw/misc/stm32f4xx_syscfg.c b/hw/misc/stm32f4xx_syscfg.c
> index dbcdca59f8..f960e4ea1e 100644
> --- a/hw/misc/stm32f4xx_syscfg.c
> +++ b/hw/misc/stm32f4xx_syscfg.c
> @@ -47,7 +47,7 @@ static void stm32f4xx_syscfg_set_irq(void *opaque, int irq, int level)
> STM32F4xxSyscfgState *s = opaque;
> int icrreg = irq / 4;
> int startbit = (irq & 3) * 4;
> - uint8_t config = config = irq / 16;
> + uint8_t config = irq / 16;
Thanks, but Philippe already posted a patch for this :
https://lists.gnu.org/archive/html/qemu-devel/2020-01/msg04823.html
Thomas
prev parent reply other threads:[~2020-01-23 5:34 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-01-23 2:38 [PATCH] stm32f4xx_syscfg: remove redundant code to fix coverity warning pannengyuan
2020-01-23 5:26 ` Thomas Huth [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=6aaa3f39-81bd-5333-9083-d95dd3cbe6b9@redhat.com \
--to=thuth@redhat.com \
--cc=alistair@alistair23.me \
--cc=euler.robot@huawei.com \
--cc=pannengyuan@huawei.com \
--cc=peter.maydell@linaro.org \
--cc=philmd@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-trivial@nongnu.org \
--cc=zhang.zhanghailiang@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).