lkml.org 
[lkml]   [2009]   [May]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] gs: missing parentheses
`|' 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));
+ (I_IGNBRK(port->gs.port.tty) ? BR_IGN : 0) |
+ (I_BRKINT(port->gs.port.tty) ? BR_INT : 0));

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));

\
 
 \ /
  Last update: 2009-05-14 12:13    [W:1.521 / U:0.036 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site