lkml.org 
[lkml]   [2010]   [Dec]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 06/15] serial: Remove duplicate unlikely from IS_ERR
    Date
    IS_ERR already uses unlikely, remove unlikely from the call sites.

    Signed-off-by: Joe Perches <joe@perches.com>
    ---
    drivers/serial/msm_serial.c | 2 +-
    1 files changed, 1 insertions(+), 1 deletions(-)

    diff --git a/drivers/serial/msm_serial.c b/drivers/serial/msm_serial.c
    index f8c816e..8e43a7b 100644
    --- a/drivers/serial/msm_serial.c
    +++ b/drivers/serial/msm_serial.c
    @@ -686,7 +686,7 @@ static int __init msm_serial_probe(struct platform_device *pdev)
    msm_port = UART_TO_MSM(port);

    msm_port->clk = clk_get(&pdev->dev, "uart_clk");
    - if (unlikely(IS_ERR(msm_port->clk)))
    + if (IS_ERR(msm_port->clk))
    return PTR_ERR(msm_port->clk);
    port->uartclk = clk_get_rate(msm_port->clk);
    printk(KERN_INFO "uartclk = %d\n", port->uartclk);
    --
    1.7.3.3.464.gf80b6


    \
     
     \ /
      Last update: 2010-12-09 21:07    [W:0.019 / U:121.468 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site