lkml.org 
[lkml]   [2010]   [Oct]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 41/49] altera_uart: Don't use plain integer as NULL pointer
    Date
    From: Anton Vorontsov <cbouatmailru@gmail.com>

    Fixes sparse warning.

    Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>
    Cc: Alan Cox <alan@linux.intel.com>
    Acked-by: Tobias Klauser <tklauser@distanz.ch>
    ---
    drivers/serial/altera_uart.c | 2 +-
    1 files changed, 1 insertions(+), 1 deletions(-)

    diff --git a/drivers/serial/altera_uart.c b/drivers/serial/altera_uart.c
    index dfc1ecc..7212162 100644
    --- a/drivers/serial/altera_uart.c
    +++ b/drivers/serial/altera_uart.c
    @@ -461,7 +461,7 @@ static int __init altera_uart_console_setup(struct console *co, char *options)
    if (co->index < 0 || co->index >= CONFIG_SERIAL_ALTERA_UART_MAXPORTS)
    return -EINVAL;
    port = &altera_uart_ports[co->index].port;
    - if (port->membase == 0)
    + if (!port->membase)
    return -ENODEV;

    if (options)
    --
    1.7.2


    \
     
     \ /
      Last update: 2010-10-22 20:27    [W:0.019 / U:30.260 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site