From: Maksim Kozlov <m.kozlov@samsung.com>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH arm] Fix bit test in Exynos4210 UART emulation to use & instead of &&
Date: Mon, 02 Apr 2012 20:04:08 +0400 [thread overview]
Message-ID: <jlcils$i8a$2@dough.gmane.org> (raw)
In-Reply-To: <1333374233-1238-1-git-send-email-berrange@redhat.com>
02.04.2012 17:43, Daniel P. Berrange пишет:
> From: "Daniel P. Berrange"<berrange@redhat.com>
>
> * hw/exynos4210_uart.c: s/&&/&/
>
> Signed-off-by: Daniel P. Berrange<berrange@redhat.com>
> ---
> hw/exynos4210_uart.c | 6 +++---
> 1 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/hw/exynos4210_uart.c b/hw/exynos4210_uart.c
> index 73a9c18..ccc4780 100644
> --- a/hw/exynos4210_uart.c
> +++ b/hw/exynos4210_uart.c
> @@ -246,7 +246,7 @@ static uint32_t exynos4210_uart_Tx_FIFO_trigger_level(Exynos4210UartState *s)
> uint32_t level = 0;
> uint32_t reg;
>
> - reg = (s->reg[I_(UFCON)]&& UFCON_Tx_FIFO_TRIGGER_LEVEL)>>
> + reg = (s->reg[I_(UFCON)]& UFCON_Tx_FIFO_TRIGGER_LEVEL)>>
> UFCON_Tx_FIFO_TRIGGER_LEVEL_SHIFT;
>
> switch (s->channel) {
> @@ -275,9 +275,9 @@ static void exynos4210_uart_update_irq(Exynos4210UartState *s)
> * The Tx interrupt is always requested if the number of data in the
> * transmit FIFO is smaller than the trigger level.
> */
> - if (s->reg[I_(UFCON)]&& UFCON_FIFO_ENABLE) {
> + if (s->reg[I_(UFCON)]& UFCON_FIFO_ENABLE) {
>
> - uint32_t count = (s->reg[I_(UFSTAT)]&& UFSTAT_Tx_FIFO_COUNT)>>
> + uint32_t count = (s->reg[I_(UFSTAT)]& UFSTAT_Tx_FIFO_COUNT)>>
> UFSTAT_Tx_FIFO_COUNT_SHIFT;
>
> if (count<= exynos4210_uart_Tx_FIFO_trigger_level(s)) {
Thanks for fixing
prev parent reply other threads:[~2012-04-02 16:05 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-02 13:43 [Qemu-devel] [PATCH arm] Fix bit test in Exynos4210 UART emulation to use & instead of && Daniel P. Berrange
2012-04-02 13:47 ` Peter Maydell
2012-04-02 16:04 ` Maksim Kozlov [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='jlcils$i8a$2@dough.gmane.org' \
--to=m.kozlov@samsung.com \
--cc=qemu-devel@nongnu.org \
/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).