diff options
author | Roel Kluin <roel.kluin@gmail.com> | 2009-04-06 12:35:34 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-04-06 17:36:43 -0400 |
commit | 1f85449ffd146cf2b91a47dff694281bcfd2558b (patch) | |
tree | 388cc29702f68ec2a25bd02bcff667130f8cba71 /drivers/char/rio/rio_linux.c | |
parent | 22654b41a724ccf937248ab0877e113c12a2cf8a (diff) |
rio: addition has higher precedence than ?:
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/char/rio/rio_linux.c')
-rw-r--r-- | drivers/char/rio/rio_linux.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/rio/rio_linux.c b/drivers/char/rio/rio_linux.c index 2e8a6eed34be..ce81da5b2da9 100644 --- a/drivers/char/rio/rio_linux.c +++ b/drivers/char/rio/rio_linux.c | |||
@@ -333,7 +333,7 @@ void rio_copy_to_card(void *from, void __iomem *to, int len) | |||
333 | 333 | ||
334 | int rio_minor(struct tty_struct *tty) | 334 | int rio_minor(struct tty_struct *tty) |
335 | { | 335 | { |
336 | return tty->index + (tty->driver == rio_driver) ? 0 : 256; | 336 | return tty->index + ((tty->driver == rio_driver) ? 0 : 256); |
337 | } | 337 | } |
338 | 338 | ||
339 | static int rio_set_real_termios(void *ptr) | 339 | static int rio_set_real_termios(void *ptr) |