public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Viral Mehta <viral.mehta@einfochips.com>
To: Roel Kluin <roel.kluin@gmail.com>
Cc: alan@redhat.com, lkml <linux-kernel@vger.kernel.org>,
	Andrew Morton <akpm@linux-foundation.org>
Subject: Re: [PATCH] gs: missing parentheses
Date: Thu, 14 May 2009 15:55:20 +0530	[thread overview]
Message-ID: <4A0BF190.7030800@einfochips.com> (raw)
In-Reply-To: <4A0BEE4C.30600@gmail.com>



Roel Kluin wrote:
> `|' has a higher precedence than `?' so add parentheses.
>
> Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
> ---
> diff --git a/drivers/char/sx.c b/drivers/char/sx.c
> index 518f2a2..1f63add 100644
> --- a/drivers/char/sx.c
> +++ b/drivers/char/sx.c
> @@ -979,8 +979,8 @@ static int sx_set_real_termios(void *ptr)
>  			(I_IXANY(port->gs.port.tty) ? SP_TANY : 0) | SP_DCEN);
>  
>  	sx_write_channel_byte(port, hi_break,
> -			(I_IGNBRK(port->gs.port.tty) ? BR_IGN : 0 |
> -			I_BRKINT(port->gs.port.tty) ? BR_INT : 0));
>   
This looks correct to me.
> +			(I_IGNBRK(port->gs.port.tty) ? BR_IGN : 0) |
> +			(I_BRKINT(port->gs.port.tty) ? BR_INT : 0));
>   
It may not want Interrupt and Ignore both at the same time on received 
breaks.

>  
>  	sx_write_channel_byte(port, hi_txon, START_CHAR(port->gs.port.tty));
>  	sx_write_channel_byte(port, hi_rxon, START_CHAR(port->gs.port.tty));
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at  http://www.tux.org/lkml/
>
>
> Email Scanned for Virus & Dangerous Content by : www.CleanMailGateway.com
>
>
>   

      reply	other threads:[~2009-05-14 10:29 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-14 10:11 [PATCH] gs: missing parentheses Roel Kluin
2009-05-14 10:25 ` Viral Mehta [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=4A0BF190.7030800@einfochips.com \
    --to=viral.mehta@einfochips.com \
    --cc=akpm@linux-foundation.org \
    --cc=alan@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=roel.kluin@gmail.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