Skip to content

Commit daba028

Browse files
RoelKluintorvalds
authored andcommitted
bfin_5xx: misplaced parentheses
`!' has a higher precedence than `&', parentheses are misplaced. Signed-off-by: Roel Kluin <[email protected]> Cc: Alan Cox <[email protected]> Acked-by: Sonic Zhang <[email protected]> Cc: Bryan Wu <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent 2e2e425 commit daba028

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/serial/bfin_5xx.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ static void bfin_serial_start_tx(struct uart_port *port)
166166
struct tty_struct *tty = uart->port.info->port.tty;
167167

168168
#ifdef CONFIG_SERIAL_BFIN_HARD_CTSRTS
169-
if (uart->scts && (!bfin_serial_get_mctrl(&uart->port)&TIOCM_CTS)) {
169+
if (uart->scts && !(bfin_serial_get_mctrl(&uart->port) & TIOCM_CTS)) {
170170
uart->scts = 0;
171171
uart_handle_cts_change(&uart->port, uart->scts);
172172
}
@@ -368,7 +368,7 @@ static irqreturn_t bfin_serial_tx_int(int irq, void *dev_id)
368368
struct bfin_serial_port *uart = dev_id;
369369

370370
#ifdef CONFIG_SERIAL_BFIN_HARD_CTSRTS
371-
if (uart->scts && (!bfin_serial_get_mctrl(&uart->port)&TIOCM_CTS)) {
371+
if (uart->scts && !(bfin_serial_get_mctrl(&uart->port) & TIOCM_CTS)) {
372372
uart->scts = 0;
373373
uart_handle_cts_change(&uart->port, uart->scts);
374374
}
@@ -504,7 +504,7 @@ static irqreturn_t bfin_serial_dma_tx_int(int irq, void *dev_id)
504504
struct circ_buf *xmit = &uart->port.info->xmit;
505505

506506
#ifdef CONFIG_SERIAL_BFIN_HARD_CTSRTS
507-
if (uart->scts && (!bfin_serial_get_mctrl(&uart->port)&TIOCM_CTS)) {
507+
if (uart->scts && !(bfin_serial_get_mctrl(&uart->port)&TIOCM_CTS)) {
508508
uart->scts = 0;
509509
uart_handle_cts_change(&uart->port, uart->scts);
510510
}

0 commit comments

Comments
 (0)