lkml.org 
[lkml]   [2009]   [Apr]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 26/27] rio: addition has higher precedence than ?:
    Date
    From: Roel Kluin <roel.kluin@gmail.com>

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

    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 2e8a6ee..ce81da5 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)

    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)


    \
     
     \ /
      Last update: 2009-04-06 17:47    [W:0.021 / U:122.884 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site