Skip to content

Commit

Permalink
rio: addition has higher precedence than ?:
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Roel Kluin authored and Linus Torvalds committed Apr 6, 2009
1 parent 22654b4 commit 1f85449
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/char/rio/rio_linux.c
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@ void rio_copy_to_card(void *from, void __iomem *to, int len)

int rio_minor(struct tty_struct *tty)
{
return tty->index + (tty->driver == rio_driver) ? 0 : 256;
return tty->index + ((tty->driver == rio_driver) ? 0 : 256);
}

static int rio_set_real_termios(void *ptr)
Expand Down

0 comments on commit 1f85449

Please sign in to comment.