[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <0F1B54C89D5F954D8535DB252AF412FA03E77D30@chinexm1.ad.analog.com>
Date: Mon, 20 Apr 2009 15:13:38 +0800
From: "Zhang, Sonic" <Sonic.Zhang@...log.com>
To: "Roel Kluin" <roel.kluin@...il.com>
CC: "Andrew Morton" <akpm@...ux-foundation.org>,
"lkml" <linux-kernel@...r.kernel.org>
Subject: RE: [PATCH] bfin_5xx: misplaced parentheses
Thanks.
Acked-by: Sonic Zhang <sonic.zhang@...log.com>
Sonic
-----Original Message-----
From: Roel Kluin [mailto:roel.kluin@...il.com]
Sent: Friday, April 17, 2009 4:29 AM
To: Zhang, Sonic
Cc: Andrew Morton; lkml
Subject: [PATCH] bfin_5xx: misplaced parentheses
`!' has a higher precedence than `&', parentheses are misplaced.
Signed-off-by: Roel Kluin <roel.kluin@...il.com>
---
diff --git a/drivers/serial/bfin_5xx.c b/drivers/serial/bfin_5xx.c index
18ba812..d86123e 100644
--- a/drivers/serial/bfin_5xx.c
+++ b/drivers/serial/bfin_5xx.c
@@ -166,7 +166,7 @@ static void bfin_serial_start_tx(struct uart_port
*port)
struct tty_struct *tty = uart->port.info->port.tty;
#ifdef CONFIG_SERIAL_BFIN_HARD_CTSRTS
- if (uart->scts &&
(!bfin_serial_get_mctrl(&uart->port)&TIOCM_CTS)) {
+ if (uart->scts && !(bfin_serial_get_mctrl(&uart->port) &
TIOCM_CTS)) {
uart->scts = 0;
uart_handle_cts_change(&uart->port, uart->scts);
}
@@ -368,7 +368,7 @@ static irqreturn_t bfin_serial_tx_int(int irq, void
*dev_id)
struct bfin_serial_port *uart = dev_id;
#ifdef CONFIG_SERIAL_BFIN_HARD_CTSRTS
- if (uart->scts &&
(!bfin_serial_get_mctrl(&uart->port)&TIOCM_CTS)) {
+ if (uart->scts && !(bfin_serial_get_mctrl(&uart->port) &
TIOCM_CTS)) {
uart->scts = 0;
uart_handle_cts_change(&uart->port, uart->scts);
}
@@ -504,7 +504,7 @@ static irqreturn_t bfin_serial_dma_tx_int(int irq,
void *dev_id)
struct circ_buf *xmit = &uart->port.info->xmit;
#ifdef CONFIG_SERIAL_BFIN_HARD_CTSRTS
- if (uart->scts &&
(!bfin_serial_get_mctrl(&uart->port)&TIOCM_CTS)) {
+ if (uart->scts &&
!(bfin_serial_get_mctrl(&uart->port)&TIOCM_CTS)) {
uart->scts = 0;
uart_handle_cts_change(&uart->port, uart->scts);
}
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists